mirror of https://github.com/pret/pokecrystal.git
split out hardware interrupts
This commit is contained in:
parent
affec2ac95
commit
bd8be2b02e
|
@ -0,0 +1,17 @@
|
||||||
|
; Game Boy hardware interrupts
|
||||||
|
|
||||||
|
SECTION "vblank",ROM0[$40]
|
||||||
|
jp VBlank
|
||||||
|
|
||||||
|
SECTION "lcd",ROM0[$48]
|
||||||
|
jp LCD
|
||||||
|
|
||||||
|
SECTION "timer",ROM0[$50]
|
||||||
|
jp Timer
|
||||||
|
|
||||||
|
SECTION "serial",ROM0[$58]
|
||||||
|
jp Serial
|
||||||
|
|
||||||
|
SECTION "joypad",ROM0[$60]
|
||||||
|
jp JoypadInt
|
||||||
|
|
17
main.asm
17
main.asm
|
@ -34,22 +34,7 @@ SECTION "rst28",ROM0[$28] ; JumpTable
|
||||||
SECTION "rst38",ROM0[$38] ; Unused
|
SECTION "rst38",ROM0[$38] ; Unused
|
||||||
rst $38
|
rst $38
|
||||||
|
|
||||||
; Game Boy hardware interrupts
|
INCLUDE "interrupts.asm"
|
||||||
|
|
||||||
SECTION "vblank",ROM0[$40]
|
|
||||||
jp VBlank
|
|
||||||
|
|
||||||
SECTION "lcd",ROM0[$48]
|
|
||||||
jp LCD
|
|
||||||
|
|
||||||
SECTION "timer",ROM0[$50]
|
|
||||||
jp Timer
|
|
||||||
|
|
||||||
SECTION "serial",ROM0[$58]
|
|
||||||
jp Serial
|
|
||||||
|
|
||||||
SECTION "joypad",ROM0[$60]
|
|
||||||
jp JoypadInt
|
|
||||||
|
|
||||||
|
|
||||||
SECTION "header",ROM0[$100]
|
SECTION "header",ROM0[$100]
|
||||||
|
|
Loading…
Reference in New Issue