summaryrefslogtreecommitdiff
path: root/asm/src/code_08007CAC.s
diff options
context:
space:
mode:
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