-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.spin2
182 lines (147 loc) · 3.75 KB
/
config.spin2
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
OBJ vconst = "NeoVGA.spin2"
CON
'' This can be defined to skip game selection
'#define DIRECT_BOOT game_mslug
'' Allow $FC000 parameter passing. (See README for more info)
USE_ARGV = true
'' Wether to use UniBIOS (uni-bios.bin).
'' Version 4.0 is recommended.
USE_UNIBIOS = false
'' Wether to use japanese AES BIOS (neo-po.bin) or export AES BIOS (neo-epo.bin)
'' This affects text language and regional censorship.
'' (choose between red blood and being able to read the text, lol)
'' This is ignored if USE_UNIBIOS is set.
USE_JP_BIOS = false
'' Wether to allow changing BIOS by pressing B in the game selection
ALLOW_BIOS_CHANGE = true
' Enable one of these to select the exmem type to use
#define USE_PSRAM16
'#define USE_PSRAM8
'#define USE_PSRAM4
'#define USE_HYPER
' For PSRAM (either type)
PSRAM_CLK = 56
PSRAM_SELECT = 57
PSRAM_BASE = 40
PSRAM_BANKS = 1
' \/ Uncomment if PSRAM_BANKS = 1 for speedup
#define USE_PSRAM_NOBANKS
PSRAM_WAIT = 5
PSRAM_DELAY = 14
PSRAM_SYNC_CLOCK = false
PSRAM_SYNC_DATA = true
' \/ Uncomment for lameness
'#define USE_PSRAM_SLOW
' For HyperRAM
HYPER_ACCESSORY = 0 ' Base pin for P2EVAL HyperRAM board
HYPER_CLK = 8+HYPER_ACCESSORY
HYPER_RWDS = 10+HYPER_ACCESSORY
HYPER_SELECT = 12+HYPER_ACCESSORY
HYPER_BASE = 0+HYPER_ACCESSORY
HYPER_RESET = 15+HYPER_ACCESSORY
HYPER_BANKS = 1 ' Note: multibank currently not implemented
HYPER_LATENCY = 6
HYPER_WAIT = HYPER_LATENCY*4 - 2
HYPER_DELAY = 14
HYPER_SYNC_CLOCK = false
HYPER_SYNC_DATA = false
SDCARD_CLK = 61
SDCARD_SELECT = 60
SDCARD_DI = 59
SDCARD_DO = 58
' \/ Uncomment for fast ROM loading
#define _SDHC_45MHZ
'{
VIDEO_MODE = vconst.MODE_VGA3X
VIDEO_SUBMODE = 0
VGA_BASEPIN = 32
VGA_VSYNC = VGA_BASEPIN + 4
'}
{
VIDEO_MODE = vconst.MODE_SVID_AND_COMP
VIDEO_SUBMODE = vconst.SUBMODE_NTSC
VGA_BASEPIN = 24
VGA_VSYNC = -1
'}
{
VIDEO_MODE = vconst.MODE_YPBPR
VIDEO_SUBMODE = 0
VGA_BASEPIN = 24
VGA_VSYNC = -1
'}
{
VIDEO_MODE = vconst.MODE_HDMI
VIDEO_SUBMODE = 0
VGA_BASEPIN = 8
VGA_VSYNC = 0
'}
{
VIDEO_MODE = vconst.MODE_LCD6
VIDEO_SUBMODE = vconst.LCD_ILI9342
VGA_BASEPIN = 0
VGA_VSYNC = (8<<0) + (9<<8) + (10<<16) + (11<<24)
'}
AUDIO_LEFT = 24+6
AUDIO_RIGHT = AUDIO_LEFT + 1
' \/ Uncomment for mono audio (still sent to both pins (you can set them to the same pin))
'#define AUDIO_MIX_MONO
'' Uncomment ONLY ONE of the below
#define INPUT_USE_USB
'#define INPUT_USE_PINS
'#define INPUT_USE_SNES
'' USB Keyboard/gamepad pins.
USB0_BASEPIN = 16 ' USB port0/port1 pin block
ENABLE_PIN = 1 ' USB object enables port voltage protection
DM_PIN = 2 ' Add to BASEPIN
'' Discrete pin inputs
' For active-low buttons: P_HIGH_15K | P_LOW_15K | P_INVERT_A
' For active-high buttons: P_HIGH_15K | P_LOW_15K | P_INVERT_OUTPUT
PINPUT_PINMODE = P_HIGH_15K | P_LOW_15K | P_INVERT_OUTPUT
PINPUT_DRIVE = true
' Set -1 if button not present
PINPUT_P1_UP = 12
PINPUT_P1_DOWN = 13
PINPUT_P1_LEFT = 14
PINPUT_P1_RIGHT = 15
PINPUT_P1_A = 6
PINPUT_P1_B = 7
PINPUT_P1_C = 5
PINPUT_P1_D = -1
PINPUT_P1_START = 4
PINPUT_P1_SELECT = -1
PINPUT_P2_UP = -1
PINPUT_P2_DOWN = -1
PINPUT_P2_LEFT = -1
PINPUT_P2_RIGHT = -1
PINPUT_P2_A = -1
PINPUT_P2_B = -1
PINPUT_P2_C = -1
PINPUT_P2_D = -1
PINPUT_P2_START = -1
PINPUT_P2_SELECT = -1
SNES_CLK = 16
SNES_LATCH = 17
SNES_PLAYER1 = 18
SNES_PLAYER2 = 19
#define SNES_LAYOUT_MINI_POSITIONAL
'#define SNES_LAYOUT_ARCADE_POSITIONAL
'#define SNES_LAYOUT_LETTERS
'#define SNES_LAYOUT_COLORS
'' Ignore stuff below
#ifdef USE_PSRAM4
#define USE_PSRAM_EITHER
PSRAM_WIDTH = 4
#endif
#ifdef USE_PSRAM8
PSRAM_WIDTH = 8
#define USE_PSRAM_EITHER
#endif
#ifdef USE_PSRAM16
PSRAM_WIDTH = 16
#define USE_PSRAM_EITHER
#endif
#ifdef USE_PSRAM_SLOW
PSRAM_CLKDIV = 3
#else
PSRAM_CLKDIV = 2
#endif