shithub: pokecrystal

Download patch

ref: bd8be2b02e994a7593f184de13f7f55834f41507
parent: affec2ac95af8bcd93a633fcefca6a712243fd94
author: yenatch <[email protected]>
date: Tue Sep 3 13:57:47 EDT 2013

split out hardware interrupts

--- /dev/null
+++ b/interrupts.asm
@@ -1,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
+
--- a/main.asm
+++ b/main.asm
@@ -34,22 +34,7 @@
 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]