-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsequeNES.asm
46 lines (28 loc) · 906 Bytes
/
sequeNES.asm
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
;----------------------------------------------------------------
; iNES header
;----------------------------------------------------------------
PRG_COUNT = 1 ;1 = 16KB, 2 = 32KB
MIRRORING = %0001 ;%0000 = horizontal, %0001 = vertical, %1000 = four-screen
.db "NES", $1a ;identification of the iNES header
.db PRG_COUNT ;number of 16KB PRG-ROM pages
.db $01 ;number of 8KB CHR-ROM pages
.db $00|MIRRORING ;mapper 0 and mirroring
.dsb 9, $00 ;clear the remaining bytes
;;;;;;;;;;;;;;;;;;
;;;; includes ;;;;
;;;;;;;;;;;;;;;;;;
.include "sequeNESconstants.asm"
.include "sequeNESprg.asm"
.include "utilities.asm"
.include "sound_engine.asm"
;;;;;;;;;;;;;;;;;;;;;;;
;; interrupt vectors ;;
;;;;;;;;;;;;;;;;;;;;;;;
.org $fffa
.dw NMI
.dw reset
.dw IRQ
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;; CHR-ROM ;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
.incbin "sequeNESchr.asm"