blob: 2f7f38e5b592d020121f61bec38928280fa35a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
.segment "HEADER" ; setting up the header
.byte "NES" ; beginning the iNES header
.byte $1a ; signature
.byte $02 ; 2 * 16KB PRG (program) ROM
.byte $01 ; 1 * 8KB CHR ROM
.byte %00000000 ; mapper and mirroring -- none here
.byte $0
.byte $0
.byte $0
.byte $0
.byte $0, $0, $0, $0, $0 ; unused
.segment "ZEROPAGE"
.segment "STARTUP"
.segment "CODE"
RESET:
SEI ; disable IRQs
CLD ; disable decimal mode
LDA #%10000000
STA $2001 ; set PPU settings
forever:
JMP forever
NMI:
RTI
.segment "VECTORS"
.word NMI
.word RESET
.word 0
.segment "CHARS"
|