-
Notifications
You must be signed in to change notification settings - Fork 3
/
game_rom_core.asm
34 lines (24 loc) · 1.25 KB
/
game_rom_core.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
;__________________________________________________________________________________________________
; Macro definitions
INCL "macros.asm"
;__________________________________________________________________________________________________
; Entry point when the game is loaded into RAM by a monitor is 0x0010
; (On entry, R0 is our program counter)
CPU 1802
ORG 0010H
LBR FakeBootLoader
;__________________________________________________________________________________________________
; Adventureland game code
ORG 0013H
INCL "adventureland.asm"
;__________________________________________________________________________________________________
; The FakeBootLoader is here so that the first LBR instruction at the beginning of the binary
; program will tell the build script the size of the program data to compress. The LBR instruction
; here will tell the build script the address of the game startup routine.
;
; When the game is launched from ROM, after decompressing the game data into RAM at address 0013H,
; the LBR instruction at 0010 will be over-written by code in game_rom_loader.asm to instead jump
; to the game's starting address in RAM.
FakeBootLoader
LBR GameStart
END