27 lines
369 B
NASM
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
|