split out hardware interrupts

This commit is contained in:
yenatch 2013-09-03 17:57:47 -04:00
parent affec2ac95
commit bd8be2b02e
2 changed files with 18 additions and 16 deletions

17
interrupts.asm Normal file
View 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

View File

@ -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]