mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
36 lines
445 B
NASM
36 lines
445 B
NASM
; rst vectors
|
|
|
|
SECTION "rst0", ROM0
|
|
di
|
|
jp Start
|
|
|
|
SECTION "rst8", ROM0 ; rst FarCall
|
|
jp FarCall_hl
|
|
|
|
SECTION "rst10", ROM0 ; rst Bankswitch
|
|
ldh [hROMBank], a
|
|
ld [MBC3RomBank], a
|
|
ret
|
|
|
|
SECTION "rst18", ROM0
|
|
rst $38
|
|
|
|
SECTION "rst20", ROM0
|
|
rst $38
|
|
|
|
SECTION "rst28", ROM0 ; rst JumpTable
|
|
push de
|
|
ld e, a
|
|
ld d, 0
|
|
add hl, de
|
|
add hl, de
|
|
ld a, [hli]
|
|
ld h, [hl]
|
|
; SECTION "rst30", ROM0
|
|
ld l, a
|
|
pop de
|
|
jp hl
|
|
|
|
SECTION "rst38", ROM0
|
|
rst $38
|