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 and_boot_equip() /* entry=171 class_id=0x0314 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] == 2) {
|
||||
/* str_to_ptr */
|
||||
|
|
@ -42,11 +42,11 @@ function and_boot_equip() /* entry=171 class_id=0x0314 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_0314_enterFastArea(arg_06);
|
||||
spawn AND_BOOT.enterFastArea(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,55 +11,31 @@ function and_boot_enterFastArea() /* entry=171 class_id=0x0314 slot=0x0F */
|
|||
if (((global[0x001F] != 2) || (global[0x001F] != 3)) || (global[0x001F] != 4)) goto block_03BA;
|
||||
|
||||
block_0358:
|
||||
/* 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_0376:
|
||||
if condition goto block_03A8;
|
||||
|
||||
block_0379:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_03A4;
|
||||
|
||||
block_0395:
|
||||
class_0A1E_slot_24(0x1000, item);
|
||||
|
||||
block_03A4:
|
||||
/* loopnext */
|
||||
goto block_0376;
|
||||
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_03A8:
|
||||
goto block_041F;
|
||||
|
||||
block_03BA:
|
||||
/* 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_03D8:
|
||||
if condition goto block_040A;
|
||||
|
||||
block_03DB:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_0406;
|
||||
|
||||
block_03F7:
|
||||
class_0A1E_slot_23(0x1000, item);
|
||||
|
||||
block_0406:
|
||||
/* loopnext */
|
||||
goto block_03D8;
|
||||
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_040A:
|
||||
goto block_0536;
|
||||
|
||||
block_041F:
|
||||
suspend;
|
||||
class_0A0C_slot_20(pid, 0x00C8);
|
||||
spawn class_0A0C_slot_32((retval + 0x00C8), 0x00000000);
|
||||
FREE.slot_20(pid, 0x00C8);
|
||||
spawn FREE.waitNTimerTicks((retval + 0x00C8), 0x00000000);
|
||||
suspend;
|
||||
counter = 0;
|
||||
|
||||
|
|
@ -67,14 +43,14 @@ function and_boot_enterFastArea() /* entry=171 class_id=0x0314 slot=0x0F */
|
|||
if (counter <= 6) goto block_04AE;
|
||||
|
||||
block_046E:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0466;
|
||||
|
||||
block_04AE:
|
||||
class_0A0C_slot_20(pid, 0x00C8);
|
||||
spawn class_0A0C_slot_32((retval + 0x00C8), 0x00000000);
|
||||
FREE.slot_20(pid, 0x00C8);
|
||||
spawn FREE.waitNTimerTicks((retval + 0x00C8), 0x00000000);
|
||||
suspend;
|
||||
counter = 0;
|
||||
|
||||
|
|
@ -82,7 +58,7 @@ function and_boot_enterFastArea() /* entry=171 class_id=0x0314 slot=0x0F */
|
|||
if (counter <= 6) goto block_0533;
|
||||
|
||||
block_04F0:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_04E8;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ function and_boot_leaveFastArea() /* entry=171 class_id=0x0314 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