LBYT
Jump to navigation
Jump to search
LBYT | |
---|---|
Description | Load byte |
Format | LBYT |
Code | 142 2008 |
Affected | A |
Type | User |
Architecture | ND-100, ND-110 |
LBYT is an assembly instruction. A byte specified by the T and X registers is loaded into the A register bits 0-7, with the A register bits 8-15 cleared.
As the ND-1x0's RAM is addressed by 16-bit words two registers are needed to address bytes. The T register points to a word, and the X register indicates the byte offset, counting from the left byte of the word pointed to by T.
Word address = (T) + (X)/2 If X is even (bit 0 = 0), the byte is in bits 8-15 of the word If X is odd (bit 0 = 1), the byte is in bits 0-7 of the word
References
- Norsk Data Document ND–06.014.02 ND-100 REFERENCE MANUAL Page 3-26
- Norsk Data Document ND–06.029.01 ND-110 Instruction Set Page 27, page 91