pokecrystal/home/rst.asm

36 lines
445 B
NASM
Raw Normal View History

2013-09-03 22:17:33 +00:00
; rst vectors
SECTION "rst0", ROM0
2013-09-03 22:17:33 +00:00
di
jp Start
SECTION "rst8", ROM0 ; rst FarCall
2013-09-03 22:17:33 +00:00
jp FarCall_hl
SECTION "rst10", ROM0 ; rst Bankswitch
ldh [hROMBank], a
2013-09-03 22:17:33 +00:00
ld [MBC3RomBank], a
ret
SECTION "rst18", ROM0
2013-09-03 22:17:33 +00:00
rst $38
SECTION "rst20", ROM0
2013-09-03 22:17:33 +00:00
rst $38
SECTION "rst28", ROM0 ; rst JumpTable
2013-09-03 22:17:33 +00:00
push de
ld e, a
ld d, 0
add hl, de
add hl, de
2013-09-03 22:17:33 +00:00
ld a, [hli]
ld h, [hl]
; SECTION "rst30", ROM0
2013-09-03 22:17:33 +00:00
ld l, a
pop de
jp hl
2013-09-03 22:17:33 +00:00
SECTION "rst38", ROM0
2013-09-03 22:17:33 +00:00
rst $38