-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.asm
80 lines (66 loc) · 2.42 KB
/
main.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
; ############################################################################################################
; MENU FOR NEO GEO 161in1 MULTICART
; - based on the work of Vortex https://github.com/xvortex/VTXCart
; - used Furrtek's "Hello World" example code: https://wiki.neogeodev.org/index.php?title=Hello_world_tutorial
;
; ArcadeTV
; // Created: 2023/10/13 09:41:53
; // Last modified: 2023/11/16 08:53:16
; ############################################################################################################
INCLUDE "config.asm"
INCLUDE "includes/regdefs.asm"
INCLUDE "includes/header.asm"
INCLUDE "includes/vars.asm"
INCLUDE "includes/ram.asm"
INCLUDE "includes/system.asm"
INCLUDE "includes/palettes.asm"
;jsr Credits
;bra .loop
; RENDER LIST ON STARTUP: -------------------
move.b #GamesCount,d0
tst.b d0
beq .noGamesFound
jsr renderGUI
jsr updateList
bra .loop
.noGamesFound
jsr noGamesMessage
; MAIN LOOP: -------------------------------
.loop:
bra .loop
; ROUTINES -----------------------------
INCLUDE "includes/gamelaunch.asm"
; SUB ROUTINES -----------------------------
INCLUDE "includes/_controller_inputs.asm"
INCLUDE "includes/_updateList.asm"
INCLUDE "includes/_render_gui.asm"
; DATA -------------------------------------
INCLUDE "gameslist.asm"
even
INCLUDE "includes/data_strings.asm"
even
; Configuration menu layouts (soft DIPs)
JPConfig:
dc.b "VORTEX MULTICART" ; Game name
dc.b $FF,$FF,$FF,$FF,$FF,$FF ; Special list
dc.b $02,$00,$00,$00,$00,$00,$00,$00,$00,$00 ; Option list
dc.b "ITEM ON PAGE"
dc.b "7 "
dc.b "14 "
USConfig:
dc.b "VORTEX MULTICART" ; Game name
dc.b $FF,$FF,$FF,$FF,$FF,$FF ; Special list
dc.b $02,$00,$00,$00,$00,$00,$00,$00,$00,$00 ; Option list
dc.b "ITEM ON PAGE"
dc.b "7 "
dc.b "14 "
even
gameLaunchInstructions:
dc.b $33,$C0,$00,$2C,$0F,$EE ; move.w d0, $2c0fee.l
dc.b $4E,$71 ; nop
dc.b $4E,$70 ; reset
dc.b $4E,$F9,$00,$C0,$04,$02 ; jmp $c00402.l
gameLaunchInstructions_end:
align 4
INCLUDE "version.asm"
end_of_file: