-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.asm
59 lines (48 loc) · 1.92 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
;--------------------------------------------------------
; COPYRIGHT (C) HARRY CLARK 2024
;--------------------------------------------------------
; GENERIC SEGA MEGA CD LOADER
;--------------------------------------------------------
; THIS FILE PERTAINS TO THE MAIN
; FUNCTIONALITY OF THE PROGRAM
;--------------------------------------------------------
INCLUDE "macros.asm"
;---------------------------------------
; SEGA MEGA CD HEADER
;---------------------------------------
ORG $000000
DISC_TYPE: DC.B "SEGADISCSYSTEM "
VOLUME_NAME: DC.B "HARRYS MCD ",0
VOLUME_SYSTEM: DC.W $100, $1
SYSTEM_NAME: DC.B "HARRYS MCD ",0
SYSTEM_VER: DC.W 0,0
IP_ADDR: DC.L $800
IP_SIZE: DC.L $800
IP_ENTRY: DC.L 0
IP_WORK_RAM: DC.L 0
SP_SIZE: DC.L $7000
SP_ADDR: DC.L $1000
SP_ENTRY: DC.L 0
SP_WORK_RAM: DC.L 0
ALIGN $100
;---------------------------------------
; GAME HEADER
;---------------------------------------
HARDWARE_TYPE: DC.B "SEGA MEGA DRIVE "
COPYRIGHT: DC.B "(C) HARRY CLARK "
NATIVE_NAME: DC.B "SEGA CD LOADER "
OVERSEAS_NAME: DC.B "SEGA CD LOADER "
DISK_ID: DC.B "GM 00-0000-00 "
IO: DC.B "J "
ALIGN $1F0
REGION: DC.B "JUE "
;--------------------------------------------------------
; INITIAL PROGRAM SECURITY COUROUTINE
;--------------------------------------------------------
INCBIN "security.bin"
;--------------------------------------------------------
; SUB CPU COUROUTINE
;--------------------------------------------------------
ALIGN $1000
INCBIN "BIOS.bin"
ALIGN $8000