16 lines
718 B
Plaintext
16 lines
718 B
Plaintext
.org $8000 ;usually $8000 but it depends on the mapper.
|
|
RESET: ;execution starts here
|
|
JMP RESET
|
|
|
|
|
|
NMI: ;NMI can't happen if the screen is off. No need for RTI
|
|
|
|
IRQ: ;this will never occur without a CLI command.
|
|
|
|
.org $FFFA
|
|
;all 6502 based hardware uses this section of memory to hold the addresses of interrupt routines
|
|
;as well as the entry point.
|
|
dw NMI ;FFFA-FFFB
|
|
dw RESET ;FFFC-FFFD ;this has to be defined or else the program counter will jump to an unknown location
|
|
dw IRQ ;FFFE-FFFF
|