ref: ec8c9688ce970b9c3b63a5b287a99542f0bc9984
parent: 8b4b97fba51f0bf32d9a3ab851ed635a6c93abc1
author: yenatch <[email protected]>
date: Sun Dec 24 16:46:32 EST 2017
move rst.asm and interrupts.asm into home/
--- a/home.asm
+++ b/home.asm
@@ -5,10 +5,10 @@
NULL::
-INCLUDE "rst.asm"
+INCLUDE "home/rst.asm"
-INCLUDE "interrupts.asm"
+INCLUDE "home/interrupts.asm"
SECTION "Header", ROM0
--- /dev/null
+++ b/home/interrupts.asm
@@ -1,0 +1,16 @@
+; Game Boy hardware interrupts
+
+SECTION "vblank", ROM0
+ jp VBlank
+
+SECTION "lcd", ROM0
+ jp LCD
+
+SECTION "timer", ROM0
+ jp Timer
+
+SECTION "serial", ROM0
+ jp Serial
+
+SECTION "joypad", ROM0
+ jp JoypadInt
--- /dev/null
+++ b/home/rst.asm
@@ -1,0 +1,37 @@
+; rst vectors
+
+SECTION "rst0",ROM0
+ di
+ jp Start
+
+SECTION "rst8",ROM0
+ jp FarCall_hl
+
+SECTION "rst10",ROM0
+ ld [hROMBank], a
+ ld [MBC3RomBank], a
+ ret
+
+SECTION "rst18",ROM0
+ rst $38
+
+SECTION "rst20",ROM0
+ rst $38
+
+SECTION "rst28",ROM0
+ push de
+ ld e, a
+ ld d, 0
+ add hl, de
+ add hl, de
+ ld a, [hli]
+ ld h, [hl]
+ ld l, a
+ pop de
+ jp hl
+
+; SECTION "rst30",ROM0
+; rst30 is midst rst28
+
+SECTION "rst38",ROM0
+ rst $38
--- a/interrupts.asm
+++ /dev/null
@@ -1,16 +1,0 @@
-; Game Boy hardware interrupts
-
-SECTION "vblank", ROM0
- jp VBlank
-
-SECTION "lcd", ROM0
- jp LCD
-
-SECTION "timer", ROM0
- jp Timer
-
-SECTION "serial", ROM0
- jp Serial
-
-SECTION "joypad", ROM0
- jp JoypadInt
--- a/rst.asm
+++ /dev/null
@@ -1,37 +1,0 @@
-; rst vectors
-
-SECTION "rst0",ROM0
- di
- jp Start
-
-SECTION "rst8",ROM0
- jp FarCall_hl
-
-SECTION "rst10",ROM0
- ld [hROMBank], a
- ld [MBC3RomBank], a
- ret
-
-SECTION "rst18",ROM0
- rst $38
-
-SECTION "rst20",ROM0
- rst $38
-
-SECTION "rst28",ROM0
- push de
- ld e, a
- ld d, 0
- add hl, de
- add hl, de
- ld a, [hli]
- ld h, [hl]
- ld l, a
- pop de
- jp hl
-
-; SECTION "rst30",ROM0
-; rst30 is midst rst28
-
-SECTION "rst38",ROM0
- rst $38