Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -22,7 +22,7 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
highNumber = 0;
|
||||
lowNumber = 0x0100;
|
||||
tempNumber = 0;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
id = Egg.getEggId(arg_06);
|
||||
onTime = (id * 10);
|
||||
|
|
@ -32,39 +32,23 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
onTime = 5;
|
||||
|
||||
block_015B:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_017B:
|
||||
if condition goto block_01F9;
|
||||
|
||||
block_017E:
|
||||
foundFloor = 1;
|
||||
tempNumber = Item.getQLo(item);
|
||||
if ((tempNumber > 0) && (tempNumber < 0x00FA)) goto block_01F5;
|
||||
|
||||
block_01A8:
|
||||
if (highNumber < tempNumber) goto block_01C0;
|
||||
|
||||
block_01B9:
|
||||
highNumber = tempNumber;
|
||||
|
||||
block_01C0:
|
||||
if (lowNumber > tempNumber) goto block_01D8;
|
||||
|
||||
block_01D1:
|
||||
lowNumber = tempNumber;
|
||||
|
||||
block_01D8:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xF2 target=[BP-0Eh] */
|
||||
floorItems = item;
|
||||
|
||||
block_01F5:
|
||||
/* loopnext */
|
||||
goto block_017B;
|
||||
for item in selector_0x42(arg0=0x0135, arg1=0x01C8, arg2=(35 * 32), origin=arg_06) {
|
||||
foundFloor = 1;
|
||||
tempNumber = Item.getQLo(item);
|
||||
if ((tempNumber > 0) && (tempNumber >= 0x00FA)) {
|
||||
if (highNumber >= tempNumber) {
|
||||
highNumber = tempNumber;
|
||||
}
|
||||
if (lowNumber <= tempNumber) {
|
||||
lowNumber = tempNumber;
|
||||
}
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xF2 target=[BP-0Eh] */
|
||||
floorItems = item;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_01F9:
|
||||
if (!foundFloor) goto block_020A;
|
||||
|
|
@ -114,8 +98,8 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
|
||||
block_02BD:
|
||||
n = item2;
|
||||
class_0A0C_slot_20(pid, 8);
|
||||
spawn class_0A11_slot_2D(retval, *(arg_06), n);
|
||||
FREE.slot_20(pid, 8);
|
||||
spawn NPC.slot_2D(retval, *(arg_06), n);
|
||||
suspend;
|
||||
|
||||
block_02F3:
|
||||
|
|
@ -134,14 +118,14 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
goto block_03E5;
|
||||
|
||||
block_0310:
|
||||
spawn class_0A0C_slot_32(pid, onTime, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, onTime, 0x00000000);
|
||||
suspend;
|
||||
|
||||
block_0336:
|
||||
if (Egg.getEggXRange(arg_06) > 0) goto block_0374;
|
||||
|
||||
block_034B:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
goto block_0336;
|
||||
|
||||
|
|
@ -159,7 +143,7 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
goto block_037D;
|
||||
|
||||
block_03B2:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0220;
|
||||
|
|
@ -179,7 +163,7 @@ function floor1_enterFastArea() /* entry=342 class_id=0x0902 slot=0x0F */
|
|||
if (wantToStop != 1) goto block_0495;
|
||||
|
||||
block_0437:
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
wantToStop = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ function floor1_leaveFastArea() /* entry=342 class_id=0x0902 slot=0x10 */
|
|||
{
|
||||
set_info(0x021C, *(arg_06));
|
||||
process_exclude();
|
||||
class_0A0C_slot_33(*(arg_06), 0x021B);
|
||||
FREE.slot_33(*(arg_06), 0x021B);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue