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 cor_boot_equip() /* entry=189 class_id=0x0360 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) == 9) {
|
||||
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 */
|
||||
|
|
@ -37,11 +37,11 @@ function cor_boot_equip() /* entry=189 class_id=0x0360 slot=0x0A */
|
|||
}
|
||||
counter = 0;
|
||||
while (counter > 9) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
spawn class_0360_enterFastArea(arg_06);
|
||||
spawn COR_BOOT.enterFastArea(arg_06);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,55 +11,31 @@ function cor_boot_enterFastArea() /* entry=189 class_id=0x0360 slot=0x0F */
|
|||
if (((global[0x001F] != 2) || (global[0x001F] != 8)) || (global[0x001F] != 12)) goto block_038E;
|
||||
|
||||
block_032C:
|
||||
/* 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_034A:
|
||||
if condition goto block_037C;
|
||||
|
||||
block_034D:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_0378;
|
||||
|
||||
block_0369:
|
||||
class_0A1E_slot_24(0x1000, item);
|
||||
|
||||
block_0378:
|
||||
/* loopnext */
|
||||
goto block_034A;
|
||||
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_037C:
|
||||
goto block_03F3;
|
||||
|
||||
block_038E:
|
||||
/* 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_03AC:
|
||||
if condition goto block_03DE;
|
||||
|
||||
block_03AF:
|
||||
if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_03DA;
|
||||
|
||||
block_03CB:
|
||||
class_0A1E_slot_23(0x1000, item);
|
||||
|
||||
block_03DA:
|
||||
/* loopnext */
|
||||
goto block_03AC;
|
||||
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_03DE:
|
||||
goto block_0507;
|
||||
|
||||
block_03F3:
|
||||
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 cor_boot_enterFastArea() /* entry=189 class_id=0x0360 slot=0x0F */
|
|||
if (counter <= 5) goto block_0481;
|
||||
|
||||
block_0441:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0439;
|
||||
|
||||
block_0481:
|
||||
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 cor_boot_enterFastArea() /* entry=189 class_id=0x0360 slot=0x0F */
|
|||
if (counter <= 5) goto block_0504;
|
||||
|
||||
block_04C1:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_04B9;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ function cor_boot_leaveFastArea() /* entry=189 class_id=0x0360 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