Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Empty-program/6502-Assembly/empty-program-1.6502
Normal file
3
Task/Empty-program/6502-Assembly/empty-program-1.6502
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
org $0801 ;start assembling at this address
|
||||
db $0E,$08,$0A,$00,$9E,$20,$28,$32,$30,$36,$34,$29,$00,$00,$00 ;required init code
|
||||
rts ;return to basic
|
||||
15
Task/Empty-program/6502-Assembly/empty-program-2.6502
Normal file
15
Task/Empty-program/6502-Assembly/empty-program-2.6502
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue