summaryrefslogtreecommitdiff
path: root/interrupts.asm
diff options
context:
space:
mode:
Diffstat (limited to 'interrupts.asm')
-rwxr-xr-xinterrupts.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/interrupts.asm b/interrupts.asm
new file mode 100755
index 00000000..51a56d5a
--- /dev/null
+++ b/interrupts.asm
@@ -0,0 +1,16 @@
+; Game Boy hardware interrupts
+
+SECTION "vblank", ROM0[$40]
+ jp VBlank ; $0150
+
+SECTION "lcd", ROM0[$48]
+ jp LCD ; $041b
+
+SECTION "timer", ROM0[$50]
+ reti
+
+SECTION "serial", ROM0[$58]
+ jp Serial ; $06aa
+
+SECTION "joypad", ROM0[$60]
+ jp JoypadInt ; $08df