diff options
author | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-06-21 18:47:20 +0200 |
---|---|---|
committer | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-06-21 18:47:20 +0200 |
commit | 64f35278f386af54f33172b64645220a4d51e502 (patch) | |
tree | 4e8f38b44cbdcf0098959cb82cc31dd57ac9bc25 | |
parent | b5f7ed050093b9c233c22eb6f3bef5bf9653df93 (diff) |
add note about NONMATCHING
-rw-r--r-- | arm9/src/font.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arm9/src/font.c b/arm9/src/font.c index 7bf618f5..acf52448 100644 --- a/arm9/src/font.c +++ b/arm9/src/font.c @@ -63,6 +63,11 @@ THUMB_FUNC void FUN_02002CC0(s32 param0) #ifdef NONMATCHING THUMB_FUNC void FUN_02002CF8(s32 param0) { + /* + param0 is used as a index to a u32[]. The original assembly computes param0<<2 several times + in the function where the present attempt compute it once and keep it r6. + */ + GF_ASSERT(param0 < 4); if (UNK_02106FC8->unk84[param0] != NULL) |