Changes

Jump to: navigation, search

6502 Emulator

2 bytes added, 10:07, 30 September 2021
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 low byte of the label X can be accessed as &lt;X and the high byte can be accessed as &gt;X. For example, this code will load the low byte of the label "start" into the A register: <code>LDA #&lt;START</code> - note that this only works with labels, and not with macros. 
=== Comments ===
* any characters on a line following an unquoted semicolon <code>;</code> are treated as a comment and ignored.

Navigation menu