mirror of https://github.com/pret/pokecrystal.git
Fix the sections in home/header.asm
They're fixed anyway, and this allows us to make some expressions constant.
This commit is contained in:
parent
c0b6e5bc21
commit
813d0aa73a
|
@ -1,24 +1,24 @@
|
||||||
; rst vectors (called through the rst instruction)
|
; rst vectors (called through the rst instruction)
|
||||||
|
|
||||||
SECTION "rst0", ROM0
|
SECTION "rst0", ROM0[$0000]
|
||||||
di
|
di
|
||||||
jp Start
|
jp Start
|
||||||
|
|
||||||
SECTION "rst8", ROM0 ; rst FarCall
|
SECTION "rst8", ROM0[$0008] ; rst FarCall
|
||||||
jp FarCall_hl
|
jp FarCall_hl
|
||||||
|
|
||||||
SECTION "rst10", ROM0 ; rst Bankswitch
|
SECTION "rst10", ROM0[$0010] ; rst Bankswitch
|
||||||
ldh [hROMBank], a
|
ldh [hROMBank], a
|
||||||
ld [MBC3RomBank], a
|
ld [MBC3RomBank], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION "rst18", ROM0
|
SECTION "rst18", ROM0[$0018]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
SECTION "rst20", ROM0
|
SECTION "rst20", ROM0[$0020]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
SECTION "rst28", ROM0 ; rst JumpTable
|
SECTION "rst28", ROM0[$0028] ; rst JumpTable
|
||||||
push de
|
push de
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
|
@ -26,36 +26,36 @@ SECTION "rst28", ROM0 ; rst JumpTable
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
; SECTION "rst30", ROM0
|
; SECTION "rst30", ROM0[$0030]
|
||||||
ld l, a
|
ld l, a
|
||||||
pop de
|
pop de
|
||||||
jp hl
|
jp hl
|
||||||
|
|
||||||
SECTION "rst38", ROM0
|
SECTION "rst38", ROM0[$0038]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
|
|
||||||
; Game Boy hardware interrupts
|
; Game Boy hardware interrupts
|
||||||
|
|
||||||
SECTION "vblank", ROM0
|
SECTION "vblank", ROM0[$0040]
|
||||||
jp VBlank
|
jp VBlank
|
||||||
|
|
||||||
SECTION "lcd", ROM0
|
SECTION "lcd", ROM0[$0048]
|
||||||
jp LCD
|
jp LCD
|
||||||
|
|
||||||
SECTION "timer", ROM0
|
SECTION "timer", ROM0[$0050]
|
||||||
jp Timer
|
jp Timer
|
||||||
|
|
||||||
SECTION "serial", ROM0
|
SECTION "serial", ROM0[$0058]
|
||||||
jp Serial
|
jp Serial
|
||||||
|
|
||||||
SECTION "joypad", ROM0
|
SECTION "joypad", ROM0[$0060]
|
||||||
jp Joypad
|
jp Joypad
|
||||||
|
|
||||||
|
|
||||||
; Game Boy cartridge header
|
; Game Boy cartridge header
|
||||||
|
|
||||||
SECTION "Header", ROM0
|
SECTION "Header", ROM0[$0100]
|
||||||
|
|
||||||
Start::
|
Start::
|
||||||
nop
|
nop
|
||||||
|
@ -63,4 +63,4 @@ Start::
|
||||||
|
|
||||||
; The cartridge header data is filled in by rgbfix.
|
; The cartridge header data is filled in by rgbfix.
|
||||||
; This makes sure it doesn't get used.
|
; This makes sure it doesn't get used.
|
||||||
ds $0150 - $0104
|
ds $0150 - @
|
||||||
|
|
Loading…
Reference in New Issue