diff --git a/m2-hack.asm b/m2-hack.asm index e2bfaaf..0a44821 100644 --- a/m2-hack.asm +++ b/m2-hack.asm @@ -451,6 +451,19 @@ b 0x80D3178 // Disable X increment .org 0x80D3180 :: nop +//--------------------------------------------------------- +// D31F8 hacks (print money balance) +//--------------------------------------------------------- + +.org 0x80D327E +ldrb r0,[r7] +bl decode_character +mov r1,r5 +bl print_character_to_window +b 0x80D32AC + +.org 0x80D32B2 :: b 0x80D32B8 + //--------------------------------------------------------- // D332C hacks (print name) //--------------------------------------------------------- diff --git a/notes/m2-notes.txt b/notes/m2-notes.txt index 969103b..0eb8da3 100644 --- a/notes/m2-notes.txt +++ b/notes/m2-notes.txt @@ -17,7 +17,7 @@ Hard-coded characters: 0x20251D8: item drop 0x3000A00: Current PSI list when displaying a PSI window? 0x3000AA2: number of party members - +0x3001300: number to be printed (e.g. withdrawn money amount) 0x3001D54: Ness items (16 bits each) 0x3001D70: Ness EXP 0x3001D80: Ness level @@ -146,6 +146,7 @@ Subroutines 80CABF8: print checkboard string (r1) to RAM (r0) at tile ((r2 * 32) + r3) 80D2E94: print party character name 80D30C4: related to printing numbers points in battle (r0 = window) +80D31F8: related to printing numbers outside of battle (r0 = window) 80D332C: related to printing names in battle (r0 = window) 80D3560: related to printing numbers outside of battle (r0 = window) 80D7154: count party members and store to 3000AA2