-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtetris.asm
More file actions
30 lines (24 loc) · 747 Bytes
/
tetris.asm
File metadata and controls
30 lines (24 loc) · 747 Bytes
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
;
; iNES header
;
; This iNES header is from Brad Smith (rainwarrior)
; https://github.com/bbbradsmith/NES-ca65-example
.segment "HEADER"
INES_MAPPER = 1 ; 0 = NROM
INES_MIRROR = 0 ; 0 = horizontal mirroring, 1 = vertical mirroring
INES_SRAM = 0 ; 1 = battery backed SRAM at $6000-7FFF
.byte 'N', 'E', 'S', $1A ; ID
.byte $02 ; 16k PRG chunk count
.byte $02 ; 8k CHR chunk count
.byte INES_MIRROR | (INES_SRAM << 1) | ((INES_MAPPER & $f) << 4)
.byte (INES_MAPPER & %11110000)
.byte $0, $0, $0, $0, $0, $0, $0, $0 ; padding
; PRG segments
.include "main.asm"
.segment "CHR"
.incbin "gfx/title_menu_tileset.chr"
.if NWC <> 1
.incbin "gfx/typeB_ending_tileset.chr"
.incbin "gfx/typeA_ending_tileset.chr"
.endif
.incbin "gfx/game_tileset.chr"