mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
e6ea1889fb
The former is arguably misleading (as you don’t access the memory location in hl to retrieve the jump location), and is consequently deprecated in newer versions of rgbds. This fix silences these deprecation warnings.
38 lines
468 B
NASM
38 lines
468 B
NASM
; rst vectors
|
|
|
|
SECTION "rst0",ROM0[0]
|
|
di
|
|
jp Start
|
|
|
|
SECTION "rst8",ROM0[FarCall]
|
|
jp FarCall_hl
|
|
|
|
SECTION "rst10",ROM0[Bankswitch]
|
|
ld [hROMBank], a
|
|
ld [MBC3RomBank], a
|
|
ret
|
|
|
|
SECTION "rst18",ROM0[$18]
|
|
rst $38
|
|
|
|
SECTION "rst20",ROM0[$20]
|
|
rst $38
|
|
|
|
SECTION "rst28",ROM0[JumpTable]
|
|
push de
|
|
ld e, a
|
|
ld d, 0
|
|
add hl, de
|
|
add hl, de
|
|
ld a, [hli]
|
|
ld h, [hl]
|
|
ld l, a
|
|
pop de
|
|
jp hl
|
|
|
|
; SECTION "rst30",ROM0[$30]
|
|
; rst30 is midst rst28
|
|
|
|
SECTION "rst38",ROM0[$38]
|
|
rst $38
|