ASM Tutorial
@Dreamcast
Published in
SNES
· 22 Apr 2024
... rogram. Failure to do so will result in a very hard to debug code. We can use the SEP (Set P flag) and REP (Reset P Flag) to set and clear flags. To make the accumulator 16 bits, we take the binary code 00010000 and convert it to hex, $20 or decimal #32, and do rep #$20 which will make the accumulator 16-bits. 3) Addressing Modes Addressing mode is how the processor interprets a command. In other words, we cannot say that: lda #$20 means the same as lda $20 The first mode loads $20 directly to the ...