mos6502/resources/beneater/asm/lda_loop.asm
2025-07-17 11:51:05 -04:00

27 lines
369 B
NASM

* = $A000
.fill Reset - *, $ea
Reset:
SEI
CLD
LDX #$FF
TXS
; Drop to the start of our main loop
MainLoop:
LDA #$AA
ROR
JMP MainLoop
; What to do when we get a NMI
NMI:
RTI
; What do we get when we get an interrupt
IRQ:
RTI
; setup the requirements for the CPU
* = $FFF8
.word NMI
.word Reset
.word IRQ