documentation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation [2020/02/15 11:56] – adminz | documentation [2020/09/21 21:44] (current) – [10LC Statements] adminz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Documentation ====== | ====== Documentation ====== | ||
- | This page covers the statements/ | + | This page covers the statements implemented in 10LC as well as the syntax for their usage. |
===== 10LC Statements ===== | ===== 10LC Statements ===== | ||
Line 20: | Line 20: | ||
Are all the same and will compile identically. | Are all the same and will compile identically. | ||
- | The only exception is a Label, which does not end with a semicolon and no space is allowed between the colon and the label name: | + | The only exception is a Label, |
<code c> | <code c> | ||
Line 31: | Line 31: | ||
Additionally, | Additionally, | ||
- | ---- | + | From here, you can view the [[Setup Statements]], |
- | From here you can view the documentation for the [Setup Statements] or the [Operational Statements]. | + | ===== Other Documentation |
- | + | A listing | |
- | ===== Setup Statements ===== | + | |
- | First we start with the statements that are used for configuring the unit and the compile environment. | + | |
- | + | ||
- | ==== SetupPod | + | |
- | The '' | + | |
- | + | ||
- | Unlike with 9LC, information on the standard Pods is stored within the compiler | + | |
- | + | ||
- | The following Pods are supported directly by 10LC: | + | |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | + | ||
- | The syntax of the statement is as follows: '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupPod Z80 | + | |
- | </ | + | |
- | + | ||
- | If you need to create your own Pod configuration/ | + | |
- | + | ||
- | + | ||
- | ==== SetupTraps ==== | + | |
- | This statement enables or disables traps associated with UUT errors. | + | |
- | + | ||
- | The following Trap names are available: | + | |
- | | '' | + | |
- | | '' | + | |
- | + | ||
- | The syntax of the statement is as follows: '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupTraps DataError No; | + | |
- | SetupTraps ActiveInterrupt DataError No; | + | |
- | SetupTraps BadPowerSupply ActiveInterrupt ActiveForceLine Yes; | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ==== SetupEnableFL ==== | + | |
- | This statement enables or disables Pod-specific forcing lines associated with a CPU. You can specify forcing lines but their bit value, or by their string identifiers. | + | |
- | + | ||
- | The following Forcing Line names are supported directly by 10LC (**but may not apply to the currently configured Pod! | + | |
- | **) | + | |
- | + | ||
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | + | ||
- | The syntax of the statement is as follows: '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupEnableFL 1 Yes; | + | |
- | SetupEnableFL 2 No; | + | |
- | SetupEnableFL | + | |
- | </ | + | |
- | + | ||
- | If you have a Pod configured, the Forcing Line name or number will be checked against the configured Pod, and if that Pod does not have a Forcing Line for a given name/ | + | |
- | + | ||
- | If you do not have a Pod configured, you can use just the Forcing Line number, and with no Pod configured, the number will not be checked. | + | |
- | + | ||
- | ==== SetupBeep ==== | + | |
- | This statement sets whether the 9010A unit emits a beep on an error transition. | + | |
- | + | ||
- | <code c> | + | |
- | SetupBeep Yes; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupInteractiveErrors ==== | + | |
- | This statement sets whether the 9010A pauses execution, displays an error message, and asks the user if they want to loop the last operation whenever an error is encountered. | + | |
- | + | ||
- | <code c> | + | |
- | SetupInteractiveErrors Yes; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupBusTestAddress ==== | + | |
- | This statement configures the default address used when a Bus Test is performed. | + | |
- | + | ||
- | <code c> | + | |
- | SetupBusTestAddress 0xFFF0; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupRunUUTAddress ==== | + | |
- | This statement configures the default address used when the Run UUT operation is performed. | + | |
- | + | ||
- | <code c> | + | |
- | SetupRunUUTAddress 0xFFFE; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupXOn ==== | + | |
- | This statement configures the serial **XOn** character used to pause transmission of serial data. This is equivalent to the '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupXon 0x70; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupXOff ==== | + | |
- | This statement configures the serial **XOff** character used to resume transmission of paused serial data. This is equivalent to the '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupXOff 0x72; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupLineSize ==== | + | |
- | This configures the serial line length used when transmitting serial data. This is an important setting when sending/ | + | |
- | + | ||
- | The 10LC compiler also uses this setting to determine the length of hex lines when it generates its output hex file. It has a range of 10-255. | + | |
- | + | ||
- | <code c> | + | |
- | SetupLinesize 70; | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ==== SetupPodTimeout ==== | + | |
- | This configures the amount of time the 9010A should wait for a connected Pod to respond to a requested operation. | + | |
- | As of right now, there is no description for how long a single count is.serial line length used when transmitting serial data. This is an important setting when sending/ | + | |
- | + | ||
- | It has a range of 6-60000. | + | |
- | + | ||
- | <code c> | + | |
- | SetupPodtimeout 100; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupNewline ==== | + | |
- | This configures both the character combination used to represent newlines on the serial interface | + | |
- | + | ||
- | The first single-character parameter represents a delay count between transmitting successive lines. | + | |
- | + | ||
- | <code c> | + | |
- | SetupNewline Delay 0x20 Chars 0x000D0A; | + | |
- | </ | + | |
- | + | ||
- | ==== SetupMaskFLMayBeEnabled ==== | + | |
- | This setting is not directly exposed by 9LC and configures the bitmask of Forcing Lines that may be referred to by the '' | + | |
- | + | ||
- | The are up to 8 supported Forcing Lines but most pods generally only use a few of the available bits. The specified mask indicates which Forcing Lines are supported by the connected Pod and thus are valid to be enabled or disabled by the '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupMaskFLMayBeEnabled 0x07 // Enable Forcing Lines 1, 2 and 3. | + | |
- | </ | + | |
- | + | ||
- | ==== SetupForcingLineNames ==== | + | |
- | This is another setting that is not directly exposed by 9LC and configures the names of Forcing Lines that may be referred to by the '' | + | |
- | + | ||
- | The are up to 8 supported Forcing Lines but most pods generally only use a few of the available bits. The 8 names correspond, in order, to the 8 supported Forcing Lines. | + | |
- | + | ||
- | <code c> | + | |
- | SetupForcingLineNames "" | + | |
- | </ | + | |
- | + | ||
- | ==== SetupMemMap ==== | + | |
- | This statement allows you do configure the expected memory map of the UUT that is going to be used with your code. There are three kinds of entries that can be specified for the memory map: '' | + | |
- | + | ||
- | This is equivalent to the '' | + | |
- | + | ||
- | <code c> | + | |
- | SetupMemMap RAM From 0x0000 To 0x0FFF; | + | |
- | SetupMemMap ROM From 0x1000 To 0x18FF SIG 0xAA55; | + | |
- | SetupMemMap ROM From 0x1900 To 0x1FFF SIG 0x1234; | + | |
- | SetupMemMap IO From 0x2000 To 0x2001 MASK 0x000000FF; | + | |
- | SetupMemMap IO From 0x2002 To 0x2003 MASK 0x7F; | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Operational Statements ===== | + | |
- | Now we cover the statements that are used for performing operations within unit and the UUT. Basically these are the 10LC equivalents to the keypresses you would use when manually operating the 9010A interactively. | + | |
- | + | ||
- | ==== Display ==== | + | |
- | The '' | + | |
- | + | ||
- | The following characters are supported for the '' | + | |
- | | ''< | + | |
- | | '' | + | |
- | | '' | + | |
- | | '','' | + | |
- | | ''#'' | + | |
- | | '' | + | |
- | | '' | + | |
- | | '' | + | |
- | (Lowercase characters are allowed by 10LC but will be converted to uppercase.) | + | |
- | + | ||
- | The following characters have special functions in a '' | + | |
- | | ''#'' | + | |
- | | '' | + | |
- | | '' | + | |
- | | ''/'' | + | |
- | | '' | + | |
- | | ''?'' | + | |
- | | '' | + | |
- | | '' | + | |
- | + | ||
- | To display a special character normally, double it. | + | |
- | + | ||
- | The syntax of the statement is: '' | + | |
- | + | ||
- | <code c> | + | |
- | Display "# - Hello World - "; | + | |
- | Display "Place you name, $$ I got"; | + | |
- | Display "Are you OK? | + | |
- | </ | + | |
documentation.1581789410.txt.gz · Last modified: 2020/02/15 11:56 by adminz