This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Main.asm
103 lines (90 loc) · 2.75 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
; -------------------------------------------------------------------------
; Sonic CD Disassembly
; By Ralakimus 2021
; -------------------------------------------------------------------------
include "_Include/Common.i"
; -------------------------------------------------------------------------
; Header
; -------------------------------------------------------------------------
dc.b "SEGADISCSYSTEM " ; Disk type ID
if REGION=JAPAN ; Volume ID
dc.b "SEGAIPSAMP ", 0
else
dc.b "SEGASONICCD", 0
endif
dc.w $0100 ; Volume version
dc.w $0001 ; CD-ROM = $0001
dc.b "SONICCD ", 0 ; System name
dc.w $0000 ; System version
dc.w $0000 ; Always 0
dc.l $00000800 ; IP disk address
dc.l $00000800 ; IP load size
dc.l $00000000 ; IP entry offset
dc.l $00000000 ; IP work RAM size
dc.l $00001000 ; SP disk address
dc.l $00007000 ; SP load size
dc.l $00000000 ; SP entry offset
dc.l $00000000 ; SP work RAM size
if REGION=JAPAN ; Build date
dc.b "08061993"
elseif REGION=USA
dc.b "10061993"
else
dc.b "08271993"
endif
align $100, $20
if REGION=JAPAN
dc.b "SEGA MEGA DRIVE " ; Hardware ID
dc.b "(C)SEGA 1993.AUG" ; Release date
elseif REGION=USA
dc.b "SEGA GENESIS " ; Hardware ID
dc.b "(C)SEGA 1993.OCT" ; Release date
else
dc.b "SEGA MEGA DRIVE " ; Hardware ID
dc.b "(C)SEGA 1993.AUG" ; Release date
endif
dc.b "SONIC THE HEDGEHOG-CD "
dc.b "SONIC THE HEDGEHOG-CD "
if REGION=JAPAN ; Game version
dc.b "GM G-6021 -00 "
elseif REGION=USA
dc.b "GM MK-4407 -00 "
else
dc.b "GM MK-4407-00 "
endif
dc.b "J " ; I/O support
dc.b " " ; Space
align $1F0, $20
if REGION=JAPAN ; Region
dc.b "J"
elseif REGION=USA
dc.b "U"
else
dc.b "E"
endif
align $200, $20
; -------------------------------------------------------------------------
; Initial program
; -------------------------------------------------------------------------
incbin "_Built/Misc/IP.BIN"
; -------------------------------------------------------------------------
; Version number?
; -------------------------------------------------------------------------
align $FFE
if REGION=JAPAN
dc.w $0106
else
dc.w $0109
endif
; -------------------------------------------------------------------------
; System program
; -------------------------------------------------------------------------
SPStart:
incbin "_Built/Misc/SP.BIN"
align $8000
; -------------------------------------------------------------------------
; File data
; -------------------------------------------------------------------------
incbin "_Built/Misc/FILES.BIN", $8000
align $800
; -------------------------------------------------------------------------