Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -27,16 +27,12 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
if Actor.isBusy() goto block_014D;
|
||||
|
||||
block_0127:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_0117;
|
||||
|
||||
block_014D:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF8 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x053A, origin=global[0x003C]) */
|
||||
|
||||
block_016B:
|
||||
if condition goto block_022D;
|
||||
|
|
@ -45,14 +41,14 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
target = item;
|
||||
|
||||
block_0175:
|
||||
class_0A0C_slot_29(target, global[0x003C]);
|
||||
FREE.slot_29(target, global[0x003C]);
|
||||
if ((retval > 3) && (counter != 6)) goto block_01F6;
|
||||
|
||||
block_0198:
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(target), Item.getX(target)))));
|
||||
spawn NPC.slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(target), Item.getX(target)))));
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0175;
|
||||
|
|
@ -137,7 +133,7 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
if (!target) goto block_0481;
|
||||
|
||||
block_0418:
|
||||
spawn class_0A0C_slot_21(pid, 0x00B0, 0x00000000);
|
||||
spawn FREE.slot_21(pid, 0x00B0, 0x00000000);
|
||||
suspend;
|
||||
goto block_0772;
|
||||
|
||||
|
|
@ -169,7 +165,7 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
if Actor.isBusy() goto block_0562;
|
||||
|
||||
block_053C:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
goto block_052C;
|
||||
|
||||
|
|
@ -181,12 +177,8 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
/* pop_global global_id=0x26 size=0x1 */
|
||||
spawn class_0A0C_slot_24(1, 100, 0x00000000);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF8 string_bytes=0x6 loop_type=0x2 */
|
||||
spawn FREE.slot_24(1, 100, 0x00000000);
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=global[0x003C]) */
|
||||
|
||||
block_05DE:
|
||||
if condition goto block_0609;
|
||||
|
|
@ -195,28 +187,16 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
if (Item.getQLo(item) != 33) goto block_0605;
|
||||
|
||||
block_05F6:
|
||||
class_0A0C_slot_2F(0x03B5, item);
|
||||
FREE.slot_2F(0x03B5, item);
|
||||
|
||||
block_0605:
|
||||
/* loopnext */
|
||||
goto block_05DE;
|
||||
|
||||
block_0609:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xF8 string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_062B:
|
||||
if condition goto block_0652;
|
||||
|
||||
block_062E:
|
||||
if (Item.getQLo(item) != 10) goto block_064E;
|
||||
|
||||
block_0643:
|
||||
|
||||
block_064E:
|
||||
/* loopnext */
|
||||
goto block_062B;
|
||||
for item in selector_0x42(arg0=0x032A, arg1=0x0329, arg2=(50 * 32), origin=global[0x003C]) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_0652:
|
||||
/* loopscr value_u8=0x24 */
|
||||
|
|
@ -231,7 +211,7 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
|
||||
block_0688:
|
||||
door = item;
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
|
||||
block_06AE:
|
||||
|
|
@ -256,24 +236,12 @@ function fuspac_use() /* entry=208 class_id=0x039C slot=0x01 */
|
|||
goto block_06CF;
|
||||
|
||||
block_0706:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF8 string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_0727:
|
||||
if condition goto block_0770;
|
||||
|
||||
block_072A:
|
||||
if ((Item.getFrame(item) != 0) && (Item.getQLo(item) != 47)) goto block_076C;
|
||||
|
||||
block_074C:
|
||||
suspend;
|
||||
|
||||
block_076C:
|
||||
/* loopnext */
|
||||
goto block_0727;
|
||||
for item in nearby_items(shape=0x04D0, origin=arg_06) {
|
||||
if ((Item.getFrame(item) == 0) && (Item.getQLo(item) != 47)) {
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_0770:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue