-
Notifications
You must be signed in to change notification settings - Fork 14
/
libSFX.cfg
224 lines (173 loc) · 4.35 KB
/
libSFX.cfg
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
; libSFX Default Configuration
; David Lindecrantz <[email protected]>
;
; Copy this file to your source path and edit as necessary
/**
Group: About
This optional file is used to override the default ROM configuration and some
library features.
If libSFX.cfg is not found in the same directory as the Makefile, the default
configuration file is included from $(libsfx_dir)/Configurations/libSFX.cfg.
Any setting not defined will fall back to the default.
*/
;-------------------------------------------------------------------------------
/**
Group: ROM Header
*/
/**
Define: ROM_TITLE
ROM title
Must be 21 chars.
>define "ROM_TITLE", "TO THE 65816 ON FIRE!"
*/
; "123456789012345678901"
define "ROM_TITLE", "TO THE 65816 ON FIRE!"
/**
Define: ROM_MAPMODE
ROM map mode (4 bits)
Make sure that Map.cfg corresponds to the map mode selected. Common modes∶
>$0 = Mode 20/30 (32k/bank "LoROM" mapping)
>$1 = Mode 21/31 (64k/bank "HiROM" mapping)
>ROM_MAPMODE = $0
*/
ROM_MAPMODE = $0
/**
Define: ROM_SPEED
ROM speed (1 bit)
>$0 = Slow (200ns access)
>$1 = Fast (120ns access)
>ROM_SPEED = $1
*/
ROM_SPEED = $1
/**
Define: ROM_CHIPSET
Chipset (2 bytes)
>$00 = ROM
>$01 = ROM+RAM
>$02 = ROM+SRAM
>$03 = ROM+DSP
>$04 = ROM+DSP+RAM
>$05 = ROM+DSP+SRAM
>$13 = ROM+GSU
>$14 = ROM+GSU+RAM
>$15 = ROM+GSU+SRAM
>$33 = ROM+SA1
>$34 = ROM+SA1+RAM
>$35 = ROM+SA1+SRAM
>$10f3 = ROM+CX4
>ROM_CHIPSET = $00
*/
ROM_CHIPSET = $00
/**
Define: ROM_ROMSIZE
ROM size (1 byte)
>$07 = 1 Mbit (128 kB)
>$08 = 2 Mbit (256 kB)
>$09 = 4 Mbit (512 kB)
>$0a = 8 Mbit (1 MB)
>$0b = 16 Mbit (2 MB)
>$0c = 32 Mbit (4 MB)
Make sure that Map.cfg corresponds to the ROM size selected.
>ROM_ROMSIZE = $07
*/
ROM_ROMSIZE = $07
/**
Define: ROM_RAMSIZE
RAM size (1 byte)
>$00 = None
>$01 = 16 Kbit (2 kB)
>$02 = 32 Kbit (4 kB)
>$03 = 64 Kbit (8 kB)
>$04 = 128 Kbit (16 kB)
>$05 = 256 Kbit (32 kB)
>...etc
>ROM_RAMSIZE = $00
*/
ROM_RAMSIZE = $00
/**
Define: ROM_EXPRAMSIZE
Expansion RAM size (1 byte)
>$00 = None
>$01 = 16 Kbit (2 kB)
>$02 = 32 Kbit (4 kB)
>$03 = 64 Kbit (8 kB)
>$04 = 128 Kbit (16 kB)
>$05 = 256 Kbit (32 kB)
>...etc
>ROM_EXPRAMSIZE = $00
*/
ROM_EXPRAMSIZE = $00
/**
Define: ROM_GAMECODE
Game code (4 chars)
>define "ROM_GAMECODE", "SFXJ"
*/
; "1234"
define "ROM_GAMECODE", "SFXJ"
/**
Define: ROM_MAKERCODE
Maker code (2 chars)
>define "ROM_MAKERCODE", "MB"
*/
; "12"
define "ROM_MAKERCODE", "MB"
/**
Define: ROM_VERSION
Software minor version (1 byte)
>ROM_VERSION = $00
*/
ROM_VERSION = $00
/**
Define: ROM_COUNTRY
Country code (1 byte)
>$00 = Japan
>$01 = USA
>$02 = Europe/PAL territories
>...etc
>ROM_COUNTRY = $00
*/
ROM_COUNTRY = $00
;--------------------------------------------------------------------
/**
Group: libSFX Settings
*/
/**
Define: SFX_JOY
Automatic joypad read-out
(start code)
Bitwise OR each joypad to be read: JOY1 | JOY2 | JOY3 | JOY4
Disable by setting SFX_JOY to DISABLE.
To disable all automatic joypad/serial port read-out set SFX_AUTO_READOUT to DISABLE.
Read joypad bits from zero-page locations (16 bits each)∶
* SFX_joy1trig
* SFX_joy1cont
* SFX_joy2trig
* SFX_joy2cont
..etc
*trig = bits are on during one frame when buttons are triggered
*cont = bits are held continously as long as buttons are pushed
(end)
More info at <SFX_joy#cont>
>SFX_JOY = JOY1 | JOY2
*/
SFX_JOY = JOY1 | JOY2
/**
Define: SFX_AUTO_READOUT_FIRST
Joypad read-out ordering
Perform joypad read-out before or after calling soft NMI.
* NO (default) will call NMI trampoline before automatic joypad read
* YES will perform automatic joypad read before NMI trampoline call
Note that while YES decreases joypad latency by one frame,
it will incur a longer wait state within the NMI handler.
>SFX_AUTO_READOUT_FIRST = NO
*/
SFX_AUTO_READOUT_FIRST = NO
/**
Define: SFX_AUTO_READOUT
Fully disable automatic read-out
Set to DISABLE to turn off automatic joypad port read-out completely.
May be useful for that special occasion when you add custom serial
port code, for instance a MIDI or keyboard interface driver...
>SFX_AUTO_READOUT = ENABLE
*/
SFX_AUTO_READOUT = ENABLE