mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
split out hardware interrupts
This commit is contained in:
parent
affec2ac95
commit
bd8be2b02e
17
interrupts.asm
Normal file
17
interrupts.asm
Normal file
@ -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
|
||||
rst $38
|
||||
|
||||
; 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
|
||||
INCLUDE "interrupts.asm"
|
||||
|
||||
|
||||
SECTION "header",ROM0[$100]
|
||||
|
Loading…
Reference in New Issue
Block a user