2013-09-03 22:17:33 +00:00
|
|
|
; 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
|
2016-05-04 15:46:23 +00:00
|
|
|
add hl, de
|
2013-09-03 22:17:33 +00:00
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
pop de
|
2017-06-09 21:01:10 +00:00
|
|
|
jp hl
|
2013-09-03 22:17:33 +00:00
|
|
|
|
|
|
|
; SECTION "rst30",ROM0[$30]
|
|
|
|
; rst30 is midst rst28
|
|
|
|
|
|
|
|
SECTION "rst38",ROM0[$38]
|
|
|
|
rst $38
|