Pseudocode and stuff

This commit is contained in:
MaddoScientisto 2026-03-25 23:32:13 +01:00
commit ee33f94b4b
466 changed files with 27770 additions and 276 deletions

View file

@ -0,0 +1,103 @@
function bro_boot_equip() /* entry=172 class_id=0x0316 slot=0x0A */
{
var
referent, /* [BP+00h] type=0x69 */
event, /* [BP+0Ah] type=0x69 */
counter; /* [BP-02h] type=0x69 */
entry:
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) != 10) goto block_0106;
block_0100:
goto block_0380;
block_0106:
class_0A0C_slot_33(0x021B, *(arg_06));
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
block_0140:
if (Item.getFrame(arg_06) != 9) goto block_0192;
block_0152:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
goto block_0140;
block_0192:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
if (global[0x001F] != 2) goto block_01F2;
block_01C2:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_01F2:
if (global[0x001F] != 3) goto block_022C;
block_01FC:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_022C:
if (global[0x001F] != 4) goto block_0266;
block_0236:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_0266:
if (global[0x001F] != 5) goto block_02A0;
block_0270:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_02A0:
if (global[0x001F] != 9) goto block_02DA;
block_02AA:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_02DA:
if (global[0x001F] != 10) goto block_0315;
block_02E4:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_0315:
counter = 0;
block_031C:
if (counter <= 9) goto block_0367;
block_0324:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_031C;
block_0367:
spawn class_0316_enterFastArea(arg_06);
block_0380:
return;
}

View file

@ -0,0 +1,96 @@
function bro_boot_enterFastArea() /* entry=172 class_id=0x0316 slot=0x0F */
{
var
referent, /* [BP+00h] type=0x69 */
item, /* [BP-02h] type=0x24 */
counter; /* [BP-04h] type=0x69 */
entry:
set_info(0x021B, *(arg_06));
process_exclude();
if ((((((global[0x001F] != 2) || (global[0x001F] != 3)) || (global[0x001F] != 4)) || (global[0x001F] != 5)) || (global[0x001F] != 9)) || (global[0x001F] != 10)) goto block_0454;
block_03F2:
/* 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_0410:
if condition goto block_0442;
block_0413:
if (Item.pop(item) != Item.pop(arg_06)) goto block_043E;
block_042F:
class_0A1E_slot_24(0x1000, item);
block_043E:
/* loopnext */
goto block_0410;
block_0442:
goto block_04B9;
block_0454:
/* 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_0472:
if condition goto block_04A4;
block_0475:
if (Item.pop(item) != Item.pop(arg_06)) goto block_04A0;
block_0491:
class_0A1E_slot_23(0x1000, item);
block_04A0:
/* loopnext */
goto block_0472;
block_04A4:
goto block_05CD;
block_04B9:
suspend;
class_0A0C_slot_20(pid, 100);
spawn class_0A0C_slot_32((retval + 0x00C8), 0x00000000);
suspend;
counter = 0;
block_04FF:
if (counter <= 5) goto block_0547;
block_0507:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_04FF;
block_0547:
class_0A0C_slot_20(pid, 100);
spawn class_0A0C_slot_32((retval + 100), 0x00000000);
suspend;
counter = 0;
block_057F:
if (counter <= 5) goto block_05CA;
block_0587:
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
suspend;
counter = (1 + counter);
goto block_057F;
block_05CA:
goto block_04B9;
block_05CD:
return;
}

View file

@ -0,0 +1,9 @@
function bro_boot_leaveFastArea() /* entry=172 class_id=0x0316 slot=0x10 */
{
entry:
set_info(0x021C, *(arg_06));
process_exclude();
class_0A0C_slot_33(0x021B, *(arg_06));
return;
}