2013-09-03 22:17:33 +00:00
|
|
|
; rst vectors
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst0", ROM0
|
2013-09-03 22:17:33 +00:00
|
|
|
di
|
|
|
|
jp Start
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst8", ROM0 ; rst FarCall
|
2013-09-03 22:17:33 +00:00
|
|
|
jp FarCall_hl
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst10", ROM0 ; rst Bankswitch
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hROMBank], a
|
2013-09-03 22:17:33 +00:00
|
|
|
ld [MBC3RomBank], a
|
|
|
|
ret
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst18", ROM0
|
2013-09-03 22:17:33 +00:00
|
|
|
rst $38
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst20", ROM0
|
2013-09-03 22:17:33 +00:00
|
|
|
rst $38
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst28", ROM0 ; rst JumpTable
|
2013-09-03 22:17:33 +00:00
|
|
|
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-17 23:14:55 +00:00
|
|
|
jp hl
|
2013-09-03 22:17:33 +00:00
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
; SECTION "rst30", ROM0
|
2013-09-03 22:17:33 +00:00
|
|
|
; rst30 is midst rst28
|
|
|
|
|
2018-02-27 03:29:09 +00:00
|
|
|
SECTION "rst38", ROM0
|
2013-09-03 22:17:33 +00:00
|
|
|
rst $38
|