mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-21 15:08:53 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
70
home/header.asm
Normal file
70
home/header.asm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
; rst vectors (called through the rst instruction)
|
||||
|
||||
SECTION "rst0", ROM0[$0000]
|
||||
di
|
||||
jp Start
|
||||
|
||||
SECTION "rst8", ROM0[$0008]
|
||||
FarCall::
|
||||
jp FarCall_hl
|
||||
|
||||
SECTION "rst10", ROM0[$0010]
|
||||
Bankswitch::
|
||||
ldh [hROMBank], a
|
||||
ld [MBC3RomBank], a
|
||||
ret
|
||||
|
||||
SECTION "rst18", ROM0[$0018]
|
||||
rst $38
|
||||
|
||||
SECTION "rst20", ROM0[$0020]
|
||||
rst $38
|
||||
|
||||
SECTION "rst28", ROM0[$0028]
|
||||
JumpTable::
|
||||
push de
|
||||
ld e, a
|
||||
ld d, 0
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
; SECTION "rst30", ROM0[$0030]
|
||||
ld l, a
|
||||
pop de
|
||||
jp hl
|
||||
|
||||
SECTION "rst38", ROM0[$0038]
|
||||
rst $38
|
||||
|
||||
|
||||
; Game Boy hardware interrupts
|
||||
|
||||
SECTION "vblank", ROM0[$0040]
|
||||
jp VBlank
|
||||
|
||||
SECTION "lcd", ROM0[$0048]
|
||||
jp LCD
|
||||
|
||||
SECTION "timer", ROM0[$0050]
|
||||
jp MobileTimer
|
||||
|
||||
SECTION "serial", ROM0[$0058]
|
||||
jp Serial
|
||||
|
||||
SECTION "joypad", ROM0[$0060]
|
||||
jp Joypad
|
||||
|
||||
|
||||
SECTION "Header", ROM0[$0100]
|
||||
|
||||
Start::
|
||||
; Nintendo requires all Game Boy ROMs to begin with a nop ($00) and a jp ($C3)
|
||||
; to the starting address.
|
||||
nop
|
||||
jp _Start
|
||||
|
||||
; The Game Boy cartridge header data is patched over by rgbfix.
|
||||
; This makes sure it doesn't get used for anything else.
|
||||
|
||||
ds $0150 - @, $00
|
||||
Loading…
Add table
Add a link
Reference in a new issue