-
Notifications
You must be signed in to change notification settings - Fork 0
/
christmas2014.asm
executable file
·65 lines (51 loc) · 1.9 KB
/
christmas2014.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
; ,
; ,, , /\ /\\ /| /|
; || ' || _ ( ) || || /|| / |
; _-_ ||/\\ ,._-_ \\ _-_, =||= \\/\\/\\ < \, _-_, // || || || __|_
;|| || || || || ||_. || || || || /-|| ||_. // || || || ----
;|| || || || || ~ || || || || || (( || ~ || /( || || || |
;\\,/ \\ |/ \\, \\ ,-_- \\, \\ \\ \\ \/\\ ,-_- {___ \\/ ,/-' ,_,
; _/
; Nintendo Christmas Card 2014
; by 0xabad1dea
; INES header
.inesprg 2 ; 32kb of program
.ineschr 1 ; one 8KB chr file
.inesmir 0 ; what does the mirror setting do? ~nobody knows~
.inesmap 0 ; real women use mapper zero
;---------------------------------------------------;
;---- bank usage record ----------------------------;
; 0 $8000 res/sslsmiley.nsf
; 1 $a000 data.asm
; 2 $c000 events.asm (blank)
; 3 $e000 nmi.asm $f000 main.asm (boot starts here)
; ---- chr ----
; 4 res/nsa-routers.chr
.bank 0
.org $8000
.incbin "res/sslsmiley.nsf"
.bank 1
.org $a000
.include "data.asm"
.bank 2
.org $c000
.include "events.asm"
.bank 3
.org $f000
.include "main.asm"
.bank 4 ; chr banks come after prg banks numerically because ?.
.org $0000
.incbin "res/nsa-routers.chr"
.bank 3
.org $e000
NMIRoutine:
.include "nmi.asm"
.org $FFFA ; vectors
.dw NMIRoutine
.dw ResetRoutine
.dw IRQRoutine
;---------------------------------------------------;
;--- variables -------------------------------------;
.rsset $001B ; reserved for NSF
Timer .rs 1 ; fractions of a second (every NMI)
SecondsTimer .rs 1 ; increments when Timer hits 60