Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -7,14 +7,14 @@ function vardesk_use() /* entry=238 class_id=0x0442 slot=0x01 */
|
|||
|
||||
set_info(0x0207, *(arg_06));
|
||||
process_exclude();
|
||||
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) >= 4) {
|
||||
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] == 9) {
|
||||
/* str_to_ptr */
|
||||
|
|
@ -46,20 +46,15 @@ function vardesk_use() /* entry=238 class_id=0x0442 slot=0x01 */
|
|||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
}
|
||||
/* 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 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=0x043D, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
counter = 0;
|
||||
while (counter > 4) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
spawn class_0442_enterFastArea(arg_06);
|
||||
spawn VARDESK.enterFastArea(arg_06);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ function vardesk_enterFastArea() /* entry=238 class_id=0x0442 slot=0x0F */
|
|||
|
||||
block_03FC:
|
||||
suspend;
|
||||
class_0A0C_slot_20(pid, 100);
|
||||
spawn class_0A0C_slot_32((retval + 60), 0x00000000);
|
||||
FREE.slot_20(pid, 100);
|
||||
spawn FREE.waitNTimerTicks((retval + 60), 0x00000000);
|
||||
suspend;
|
||||
if (!Item.getFrame(arg_06)) goto block_049C;
|
||||
|
||||
|
|
@ -27,13 +27,13 @@ function vardesk_enterFastArea() /* entry=238 class_id=0x0442 slot=0x0F */
|
|||
if (counter <= 4) goto block_049C;
|
||||
|
||||
block_045C:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0454;
|
||||
|
||||
block_049C:
|
||||
class_0A0C_slot_20(100);
|
||||
FREE.slot_20(100);
|
||||
if (retval > 50) goto block_0507;
|
||||
|
||||
block_04B2:
|
||||
|
|
@ -43,7 +43,7 @@ function vardesk_enterFastArea() /* entry=238 class_id=0x0442 slot=0x0F */
|
|||
if (counter <= 4) 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;
|
||||
|
|
@ -52,7 +52,7 @@ function vardesk_enterFastArea() /* entry=238 class_id=0x0442 slot=0x0F */
|
|||
goto block_059E;
|
||||
|
||||
block_0507:
|
||||
class_0A0C_slot_20(3);
|
||||
FREE.slot_20(3);
|
||||
ran = (retval + 3);
|
||||
counter = 0;
|
||||
|
||||
|
|
@ -60,9 +60,9 @@ function vardesk_enterFastArea() /* entry=238 class_id=0x0442 slot=0x0F */
|
|||
if (counter <= ran) goto block_059E;
|
||||
|
||||
block_052B:
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
goto block_0520;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ function vardesk_leaveFastArea() /* entry=238 class_id=0x0442 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