Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -11,14 +11,14 @@ function ree_boot_equip() /* entry=283 class_id=0x04DB slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else {
|
||||
class_0A0C_slot_33(0x021B, *(arg_06));
|
||||
FREE.slot_33(0x021B, *(arg_06));
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
while (Item.getFrame(arg_06) == 11) {
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
|
||||
suspend;
|
||||
if (global[0x001F] == 3) {
|
||||
/* str_to_ptr */
|
||||
|
|
@ -62,11 +62,11 @@ function ree_boot_equip() /* entry=283 class_id=0x04DB slot=0x0A */
|
|||
}
|
||||
counter = 0;
|
||||
while (counter > 11) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
spawn class_04DB_enterFastArea(arg_06);
|
||||
spawn REE_BOOT.enterFastArea(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,55 +11,31 @@ function ree_boot_enterFastArea() /* entry=283 class_id=0x04DB slot=0x0F */
|
|||
if ((((((((global[0x001F] != 3) || (global[0x001F] != 6)) || (global[0x001F] != 7)) || (global[0x001F] != 8)) || (global[0x001F] != 9)) || (global[0x001F] != 11)) || (global[0x001F] != 12)) || (global[0x001F] != 13)) goto block_04DA;
|
||||
|
||||
block_0478:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0496:
|
||||
if condition goto block_04C8;
|
||||
|
||||
block_0499:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_04C4;
|
||||
|
||||
block_04B5:
|
||||
class_0A1E_slot_24(0x1000, item);
|
||||
|
||||
block_04C4:
|
||||
/* loopnext */
|
||||
goto block_0496;
|
||||
for item in nearby_items(shape=0x03AA, origin=arg_06) {
|
||||
if (Item.getQLo(item) == Item.getQLo(arg_06)) {
|
||||
ITEM.slot_24(0x1000, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_04C8:
|
||||
goto block_053F;
|
||||
|
||||
block_04DA:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_04F8:
|
||||
if condition goto block_052A;
|
||||
|
||||
block_04FB:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_0526;
|
||||
|
||||
block_0517:
|
||||
class_0A1E_slot_23(0x1000, item);
|
||||
|
||||
block_0526:
|
||||
/* loopnext */
|
||||
goto block_04F8;
|
||||
for item in nearby_items(shape=0x03AA, origin=arg_06) {
|
||||
if (Item.getQLo(item) == Item.getQLo(arg_06)) {
|
||||
ITEM.slot_23(0x1000, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_052A:
|
||||
goto block_0653;
|
||||
|
||||
block_053F:
|
||||
suspend;
|
||||
class_0A0C_slot_20(pid, 120);
|
||||
spawn class_0A0C_slot_32((retval + 0x00DC), 0x00000000);
|
||||
FREE.slot_20(pid, 120);
|
||||
spawn FREE.waitNTimerTicks((retval + 0x00DC), 0x00000000);
|
||||
suspend;
|
||||
counter = 0;
|
||||
|
||||
|
|
@ -67,14 +43,14 @@ function ree_boot_enterFastArea() /* entry=283 class_id=0x04DB slot=0x0F */
|
|||
if (counter <= 4) goto block_05CD;
|
||||
|
||||
block_058D:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0585;
|
||||
|
||||
block_05CD:
|
||||
class_0A0C_slot_20(pid, 120);
|
||||
spawn class_0A0C_slot_32((retval + 120), 0x00000000);
|
||||
FREE.slot_20(pid, 120);
|
||||
spawn FREE.waitNTimerTicks((retval + 120), 0x00000000);
|
||||
suspend;
|
||||
counter = 0;
|
||||
|
||||
|
|
@ -82,7 +58,7 @@ function ree_boot_enterFastArea() /* entry=283 class_id=0x04DB slot=0x0F */
|
|||
if (counter <= 4) goto block_0650;
|
||||
|
||||
block_060D:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0605;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ function ree_boot_leaveFastArea() /* entry=283 class_id=0x04DB slot=0x10 */
|
|||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_33(0x021B, *(arg_06));
|
||||
FREE.slot_33(0x021B, *(arg_06));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue