-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod.inc
More file actions
47 lines (38 loc) · 750 Bytes
/
mod.inc
File metadata and controls
47 lines (38 loc) · 750 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
; mod.inc
;
; include for modifications
;
;
; https://github.com/bbbradsmith/zensf
; exports for mod.cfg to know where ramp.s resides
.include "out_info/build.inc"
.export RAM_LOW
; dummy exports for ramp.s
base_nmi = $8000
base_banks = $8000
BASE_BANK = $FF
.export base_nmi
.export base_banks
.exportzp BASE_BANK
; bankswitch replacements (from ramp.s)
.import sta_5FF8
.import sta_5FF9
.import sta_5FFA
.import sta_5FFB
.import sta_5FFC
.import sta_5FFD
.import sta_5FFE
.import sta_5FFF
.import sty_5FFA
.import sty_5FFB
; vectors (from ramp.s)
.import ramp_nmi
.import ramp_reset
.import ramp_irq
.macro VECTORS
.assert * = $FFFA, error, "VECTORS must be at $FFFA"
.word ramp_nmi
.word ramp_reset
.word ramp_irq
.endmacro
; end of file