summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-06-06 16:18:13 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-06-06 16:18:13 -0400
commite45a36ecaa0dd46594f49f52206707ed60eb2a3e (patch)
tree51a99278b3f0da474174d1db709ab0f5544d60c3 /home
parent884e0f67f8cd0151784c90fa18682ef45cd3bf6a (diff)
Disassemble three more functions that seem to be unfiled
Diffstat (limited to 'home')
-rw-r--r--home/init.asm4
-rw-r--r--home/misc_32c8.asm28
2 files changed, 29 insertions, 3 deletions
diff --git a/home/init.asm b/home/init.asm
index 515ce84..98fa129 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -104,9 +104,7 @@ Init: ; 052f
call DisableAudio
call _2007
- ; predef ???
- ld a, $4B ; TODO: add predefs so the line above can be uncommented
- call Predef
+ predef CheckSGB
ld a, $1F
ld [rIE], a
ld a, HIGH($9C00)
diff --git a/home/misc_32c8.asm b/home/misc_32c8.asm
new file mode 100644
index 0000000..f371d39
--- /dev/null
+++ b/home/misc_32c8.asm
@@ -0,0 +1,28 @@
+include "constants.asm"
+
+if DEBUG
+SECTION "Unknown 32c8", ROM0[$32c8]
+else
+SECTION "Unknown 32c8", ROM0[$328c]
+endc
+
+Function32c8::
+ predef Functionce10
+ ld a, b
+ and a
+ ret
+
+Function32d0::
+ ld hl, .Data
+ ret
+
+.Data: ; 00:32d4
+ db "@"
+
+SubtractSigned::
+ sub b
+ ret nc
+ cpl
+ add $1
+ scf
+ ret