diff options
-rwxr-xr-x | engine/bank2.asm | 31 | ||||
-rwxr-xr-x | main.asm | 4 |
2 files changed, 32 insertions, 3 deletions
diff --git a/engine/bank2.asm b/engine/bank2.asm new file mode 100755 index 0000000..4c3058d --- /dev/null +++ b/engine/bank2.asm @@ -0,0 +1,31 @@ +INCBIN "baserom.gbc",$8000,$8cf9 - $8000
+
+Func_8cf9: ; 8cf9 (2:4cf9)
+ call Func_07b6
+ xor a
+ ld hl, $b703
+ ld [hli], a
+ inc a
+ ld [hli], a
+ ld [hli], a
+ ld [hl], a
+ ld [$b701], a
+ call Func_07be
+ ld hl, Unknown_8d15
+ ld de, $9380
+ call Func_92ad
+ ret
+
+Unknown_8d15: ; 8d15 (2:4d15)
+INCBIN "baserom.gbc",$8d15,$92ad - $8d15
+
+Func_92ad: ; 92ad (2:52ad)
+ ld a, [hli]
+ ld [de], a
+ or a
+ ret z
+ inc de
+ jr Func_92ad
+; 0x92b4
+
+INCBIN "baserom.gbc",$92b4,$c000 - $92b4
\ No newline at end of file @@ -8,9 +8,7 @@ SECTION "bank1",ROMX,BANK[$1] INCLUDE "engine/bank1.asm" SECTION "bank2",ROMX,BANK[$2] -INCBIN "baserom.gbc",$8000,$8cf9 - $8000 -Func_8cf9: ; 8cf9 (2:4cf9) -INCBIN "baserom.gbc",$8cf9,$c000 - $8cf9 +INCLUDE "engine/bank2.asm" SECTION "bank3",ROMX,BANK[$3] INCLUDE "engine/bank3.asm" |