-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaptainComic.s
57 lines (44 loc) · 1.1 KB
/
CaptainComic.s
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
;#link "NC1.s"
;#link "NC2.s"
;#resource "CC.cfg"
;#resource "CHR_00.chr"
;#resource "CHR_01.chr"
;#resource "CHR_02.chr"
;#resource "CHR_03.chr"
;#resource "CHR_04.chr"
;#resource "CHR_05.chr";
;#resource "CHR_06.chr"
;#resource "CHR_07.chr"
;#resource "PULSES.ASM"
;#define CFGFILE CC.cfg
;#define LIBARGS ,
;
; iNES header
;
.segment "HEADER"
INES_MAPPER = 11 ; 11 = Color Dreams
INES_MIRROR = 1 ; 0 = horizontal mirroring, 1 = vertical mirroring
INES_SRAM = 0 ; 1 = battery backed SRAM at $6000-7FFF
.byte 'N', 'E', 'S', $1A ; ID
.byte $04 ; 16k PRG chunk count
.byte $08
; 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
.segment "TILES_00"
.incbin "CHR_00.chr"
.segment "TILES_01"
.incbin "CHR_01.chr"
.segment "TILES_02"
.incbin "CHR_02.chr"
.segment "TILES_03"
.incbin "CHR_03.chr"
.segment "TILES_04"
.incbin "CHR_04.chr"
.segment "TILES_05"
.incbin "CHR_05.chr"
.segment "TILES_06"
.incbin "CHR_06.chr"
.segment "TILES_07"
.incbin "CHR_07.chr"