mirror of https://github.com/pret/pokecrystal.git
clean up rst vectors
This commit is contained in:
parent
bd8be2b02e
commit
0caac30f27
20
main.asm
20
main.asm
|
@ -1,23 +1,27 @@
|
||||||
SECTION "bank0",ROM0
|
SECTION "bank0",ROM0
|
||||||
SECTION "rst0",ROM0[$0]
|
|
||||||
|
|
||||||
|
; rst vectors
|
||||||
|
|
||||||
|
SECTION "rst0",ROM0[0]
|
||||||
di
|
di
|
||||||
jp Start
|
jp Start
|
||||||
|
|
||||||
SECTION "rst8",ROM0[$8] ; FarCall
|
SECTION "rst8",ROM0[FarCall]
|
||||||
jp FarCall_hl
|
jp FarCall_hl
|
||||||
|
|
||||||
SECTION "rst10",ROM0[$10] ; Bankswitch
|
SECTION "rst10",ROM0[Bankswitch]
|
||||||
ld [hROMBank], a
|
ld [hROMBank], a
|
||||||
ld [MBC3RomBank], a
|
ld [MBC3RomBank], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION "rst18",ROM0[$18] ; Unused
|
SECTION "rst18",ROM0[$18]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
SECTION "rst20",ROM0[$20] ; Unused
|
SECTION "rst20",ROM0[$20]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
SECTION "rst28",ROM0[$28] ; JumpTable
|
SECTION "rst28",ROM0[JumpTable]
|
||||||
push de
|
push de
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
|
@ -29,11 +33,13 @@ SECTION "rst28",ROM0[$28] ; JumpTable
|
||||||
pop de
|
pop de
|
||||||
jp [hl]
|
jp [hl]
|
||||||
|
|
||||||
|
; SECTION "rst30",ROM0[$30]
|
||||||
; rst30 is midst rst28
|
; rst30 is midst rst28
|
||||||
|
|
||||||
SECTION "rst38",ROM0[$38] ; Unused
|
SECTION "rst38",ROM0[$38]
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "interrupts.asm"
|
INCLUDE "interrupts.asm"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue