summaryrefslogtreecommitdiff
path: root/asm/src/code_08007CAC.s
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2024-01-06 14:59:48 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2024-01-06 15:01:44 +0100
commitaced0bef691dbc41bdd39b6e62662d2436877a4b (patch)
treee90f9fd8e4c4c3471c2fb246bb1372974294b469 /asm/src/code_08007CAC.s
parentc3b771a20923b335bbea2ab97a68ac29d04fcc43 (diff)
Rename metaTiles
Now the 16x16 tiles are just called tiles and the 8x8 tiles are called subTiles.
Diffstat (limited to 'asm/src/code_08007CAC.s')
-rw-r--r--asm/src/code_08007CAC.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/asm/src/code_08007CAC.s b/asm/src/code_08007CAC.s
index 482c4d42..5fffe296 100644
--- a/asm/src/code_08007CAC.s
+++ b/asm/src/code_08007CAC.s
@@ -8,7 +8,7 @@
// TODO cannot add this at the end of mapVvvToSurfaceType.c due to alignment?
.2byte 0
-// TODO unused?
+// TODO unused? might also be code?
gUnk_08007DBE:: @ 08007DBE
.byte 0x42, 0x7b, 0x01, 0x32, 0x42, 0x73, 0x70, 0x47, 0x02, 0x73, 0x00, 0x23, 0x43, 0x73, 0x0b, 0x73
@@ -20,18 +20,18 @@ sub_08007DCE:
pop {pc}
-// Find the key in the map of u16 to u16
-// r0: value
-// r1: array of u16*
+// Searches for a KeyValuePair with the key in the keyValuePairList and returns its value. Returns 0 if the key is not found.
+// r0: key
+// r1: keyValuePairList
non_word_aligned_thumb_func_start FindValueForKey
FindValueForKey: @ 0x08007DD6
push {lr}
- bl ActTileConv
+ bl FindEntryForKey
adds r0, r3, #0 // move the found value into r0
pop {pc}
- thumb_func_start ActTileConv // TODO rename
-ActTileConv: @ 0x08007DE0
+ thumb_func_start FindEntryForKey // TODO rename
+FindEntryForKey: @ 0x08007DE0
subs r1, #4
_08007DE2:
adds r1, #4 // add +4 to r1 at the end of loop