Usecode pseudocode

This commit is contained in:
MaddoScientisto 2026-03-26 00:37:17 +01:00
commit c12bb39437
1362 changed files with 71072 additions and 38056 deletions

View file

@ -4,14 +4,11 @@ function opc_use() /* entry=220 class_id=0x03BC slot=0x01 */
referent, /* [BP+00h] type=0x69 */
item; /* [BP-02h] type=0x24 */
entry:
set_info(0x0207, *(arg_06));
process_exclude();
class_0A1E_slot_23(0x1000, arg_06);
/* global_address global_id=0x3C */
if (Item.getType() != 21) goto block_02AB;
block_0110:
set_info(0x0207, *(arg_06));
process_exclude();
class_0A1E_slot_23(0x1000, arg_06);
/* global_address global_id=0x3C */
if (Actor.getMap() == 21) {
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
suspend;
@ -26,36 +23,22 @@ function opc_use() /* entry=220 class_id=0x03BC slot=0x01 */
spawn class_0A0C_slot_32(pid, 0x00B4, 0x00000000);
suspend;
/* global_address global_id=0x3C */
if (!Kernel.resetRef()) goto block_0244;
block_0217:
spawn class_0A0C_slot_26(pid, "11g", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
block_0244:
if (Actor.isDead()) {
spawn class_0A0C_slot_26(pid, "11g", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
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 */
block_0263:
if condition goto block_02A6;
block_0266:
if (Intrinsic00D9(item) != 99) goto block_02A2;
block_027B:
block_02A2:
/* loopnext */
goto block_0263;
block_02A6:
goto block_03DB;
block_02AB:
while (!condition) {
/* loopnext */
}
return;
}
else {
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
suspend;
@ -72,22 +55,9 @@ function opc_use() /* entry=220 class_id=0x03BC slot=0x01 */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_038B:
if condition goto block_03CE;
block_038E:
if (Intrinsic00D9(item) != 2) goto block_03CA;
block_03A3:
block_03CA:
/* loopnext */
goto block_038B;
block_03CE:
block_03DB:
return;
while (!condition) {
/* loopnext */
}
}
return;
}