From d1ddf481f00b0ffb1eb0e36a1406bd2fe9d9af36 Mon Sep 17 00:00:00 2001 From: jeffman Date: Wed, 22 Mar 2017 16:47:34 -0400 Subject: [PATCH] Added some formatting hacks --- m2-hack.asm | 35 +++++++++++++++++++++++++++++++++++ m2-notes.txt | 2 ++ 2 files changed, 37 insertions(+) diff --git a/m2-hack.asm b/m2-hack.asm index 12d3def..879bce0 100644 --- a/m2-hack.asm +++ b/m2-hack.asm @@ -311,6 +311,32 @@ b $80D2F52 // Disable X increment org $80D2F5A; nop +//--------------------------------------------------------- +// D30C4 hacks (print number) +//--------------------------------------------------------- + +org $80D314A +mov r0,r5 +mov r1,r7 +bl m2_vwf.weld_entry +b $80D3178 + +// Disable X increment +org $80D3180; nop + +//--------------------------------------------------------- +// D332C hacks (print name) +//--------------------------------------------------------- + +org $80D34E8 +mov r0,r5 +mov r1,r4 +bl m2_vwf.weld_entry +b $80D3514 + +// Disable X increment +org $80D351A; nop + //--------------------------------------------------------- // D3934 hacks (print PSI name) //--------------------------------------------------------- @@ -327,6 +353,15 @@ b $80D3A14 // Print a space before the Greek letter org $80D39D4; bl m2_vwf_entries.d3934_print_space +// Allocate extra space for enemy names +org $80DB04E; add sp,#-0x20 +org $80DB058; mov r2,#0x1E +org $80DB08C; mov r2,#0x1A +org $80DB116; mov r1,#0x1E +org $80DB15A; app sp,#0x20 + +//80DB116: length of name + end code + //============================================================================== // Data files //============================================================================== diff --git a/m2-notes.txt b/m2-notes.txt index a01f0bf..8f92fc3 100644 --- a/m2-notes.txt +++ b/m2-notes.txt @@ -121,6 +121,8 @@ Subroutines 80C980C: print next character (r0: window pointer) 80CA4BC: scroll text upwards (r0: window pointer) 80D2E94: print party character name +80D30C4: related to printing numbers points in battle (r0 = window) +80D332C: related to printing names in battle (r0 = window) 80D7154: count party members and store to 3000AA2 then do some other stuff to the windows -- possibly drawing the HP/PP boxes?