Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -4,8 +4,8 @@ function miss5_hatch() /* entry=357 class_id=0x0911 slot=0x07 */
process_exclude();
if (Egg.getEggId(arg_06) == 1) {
/* pop_global global_id=0x33 size=0x1 */
class_0A0C_slot_41(1);
spawn class_0911_slot_20(pid, arg_06);
FREE.slot_41(1);
spawn MISS5.slot_20(pid, arg_06);
suspend;
return;
}

View file

@ -17,17 +17,13 @@ function miss5_slot_20() /* entry=357 class_id=0x0911 slot=0x20 */
set_info(1, 0);
/* global_address global_id=0x3C */
while (!Actor.isBusy()) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
/* global_address global_id=0x3C */
suspend;
door = 0;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in nearby_items(shape=ELEVATOR_DOOR_RIGHT, origin=global[0x003C]) */
while (!condition) {
if (Item.getQLo(item) == 1) {
door = item;
@ -43,55 +39,40 @@ function miss5_slot_20() /* entry=357 class_id=0x0911 slot=0x20 */
counter = 3;
}
/* global_address global_id=0x3C */
spawn class_0A11_slot_22(counter, 0);
spawn NPC.slot_22(counter, 0);
/* global_address global_id=0x3C */
suspend;
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
suspend;
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in nearby_items(shape=0x04E0, origin=global[0x003C]) */
while (!condition) {
willmar = item;
/* loopnext */
}
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for item in nearby_items(shape=GRATE_FLOOR_GRAY, origin=arg_06) {
dir = Item.getQHi(item);
floor = item;
/* loopnext */
}
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for item in selector_0x42(arg0=0x01C4, arg1=0x0186, arg2=(10 * 32), origin=floor) {
post1 = item;
/* loopnext */
}
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
for item in selector_0x42(arg0=0x01C5, arg1=0x0184, arg2=(10 * 32), origin=floor) {
post2 = item;
/* loopnext */
}
if (!(post1 && post2)) {
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
suspend;
/* global_address global_id=0x3C */
if (!dir) {
counter = 1;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
counter = (1 + counter);
}
@ -99,26 +80,24 @@ function miss5_slot_20() /* entry=357 class_id=0x0911 slot=0x20 */
else {
counter = 0;
while (counter > 3) {
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
counter = (1 + counter);
}
}
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
}
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0193, arg1=0x01C7, arg2=(10 * 32), origin=floor) */
while (!condition) {
door = item;
spawn class_0A06_slot_21(pid, 1, door);
spawn DOOR.slot_21(pid, 1, door);
suspend;
/* loopnext */
}
spawn class_0A11_slot_21(pid, 4, willmar);
spawn NPC.slot_21(pid, 4, willmar);
suspend;
suspend;
/* global_address global_id=0x3C */
@ -128,28 +107,28 @@ function miss5_slot_20() /* entry=357 class_id=0x0911 slot=0x20 */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
suspend;
spawn class_0A11_slot_21(pid, 2, willmar);
spawn NPC.slot_21(pid, 2, willmar);
suspend;
suspend;
spawn class_0A06_slot_21(pid, 1, door);
spawn DOOR.slot_21(pid, 1, door);
suspend;
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
suspend;
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
spawn class_0A11_slot_21(pid, 2, willmar);
spawn NPC.slot_21(pid, 2, willmar);
suspend;
suspend;
spawn class_0A06_slot_21(pid, 2, door);
spawn DOOR.slot_21(pid, 2, door);
suspend;
if (!(post1 && post2)) {
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
suspend;
if (dir) {
counter = 1;
while (counter > 4) {
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
counter = (1 + counter);
}
@ -157,12 +136,12 @@ function miss5_slot_20() /* entry=357 class_id=0x0911 slot=0x20 */
else {
counter = 0;
while (counter > 3) {
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
counter = (1 + counter);
}
}
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
}
}