Jump to content

Special characters: Difference between revisions

m
Line 38:
* <code>$</code> tells the assembler the number after it is hexadecimal (e.g. <code>LDA #$21</code>)
* <code>%</code> tells the assembler the number after it is binary (e.g. <code>LDA #%11110111</code>)
* <code><</code> represents the "low byte" of a number greater than 8 bits (e.g. <code><$1234</code> gets replaced with <code>$34</code>)
* <code>></code> represents the "high byte" of a number greater than 8 bits (e.g. <code><$1234</code> gets replaced with <code>$12</code>)
* <code>"</code> strings are enclosed in double quotes, e.g. <code>db "Hello World",0</code>
* <code>'</code> single ASCII values are enclosed in single quotes, e.g. <code>LDA #'J'</code>
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.