1,885
edits
Changes
→High and Low Label Bytes
* "dcb" directive: the Define Constant Byte (dcb) directive will cause the assembler to place individual byte values into memory. These byte values may be in hexadecimal prefixed with $, decimal with no prefix, or single printable non-space characters quoted with double quotes.
=== High and Low Label Bytes ===
* the The low byte of the label X can be accessed as <X and the high byte can be accessed as >X. For example, this code will load the low byte of the label "start" into the A register: <code>LDA #<START</code> - note that this only works with labels, and not with macros.* You can use labels and origin assignment together to get a label for any address in the system. For example, to get a label pointing to the first byte of the character display, you could place this at the end of your program: *=$f000 DISPLAY: You could then create a pointer to that address at $0027 with this code: LDA #<DISPLAY STA $27 LDA #>DISPLAY STA $28
=== Comments ===