shithub: pokecrystal

ref: 14ef9d3066ddf48f392b8afb698d85f0a7583f6f
dir: /home/rst.asm/

View raw version
; rst vectors

SECTION "rst0",ROM0
	di
	jp Start

SECTION "rst8",ROM0
	jp FarCall_hl

SECTION "rst10",ROM0
	ld [hROMBank], a
	ld [MBC3RomBank], a
	ret

SECTION "rst18",ROM0
	rst $38

SECTION "rst20",ROM0
	rst $38

SECTION "rst28",ROM0
	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
; rst30 is midst rst28

SECTION "rst38",ROM0
	rst $38