Update notes

This commit is contained in:
jeffman 2019-01-24 19:46:36 -05:00
parent f7fa3f7c5b
commit 3fa4875293
4 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,7 @@ Subroutines
80EC004: get user string pointer
80EC010: copy string from r0, of max length r1, to battle target slot, and terminate with [00 FF]
80EC046: get target string pointer
80F49DC: divide r0 by r1, return quotient in r0
8B1B8B8 has a jump table with 13 entries for the [1A FF xx 00] code:
00: ?

View File

@ -8,3 +8,4 @@ int __attribute__((naked)) m2_resetwindow(WINDOW* window, bool skip_redraw) {}
void __attribute__((naked)) m2_hpwindow_up(int character) {}
bool __attribute__((naked)) m2_isequipped(int item_index) {}
void __attribute__((naked)) m2_soundeffect(int index) {}
int __attribute__((naked)) m2_div(int dividend, int divisor) {}

View File

@ -6,6 +6,9 @@
// Process the outer Goods window (i.e. character selection)
// Called every frame. Replaces $80BF858 fully.
// Returns 1 if the user steps into the inner window,
// -1 if the user steps back out to the previous window,
// and 0 for no action.
int goods_outer_process(WINDOW* window)
{
// Get the weird signed parity value

View File

@ -849,6 +849,7 @@ m2_enemy_attributes:
.definelabel m2_resetwindow ,0x80BE490
.definelabel m2_hpwindow_up ,0x80D3F0C
.definelabel m2_curhpwindow_down ,0x80D41D8
.definelabel m2_div ,0x80F49D8
//==============================================================================
// Code files