6502-sim/test/instructions.asm
2023-06-15 17:08:20 +00:00

15 lines
636 B
NASM

LDA # ; load the value immediately after # into the A register
STA zp ; store the value of the A register into the address at zp
;; new instructions
LDX zp ; load the value at the address in zp into the X register
DEX i ; subtract 1 to the value of the X register, store the result in the X register
BNE r ; if the result of the last subtraction is not equal to zero,
; - jump to a the specified location in the program
; otherwise,
; - continue to the next instruction immediately following this one
ADC zp,x ;