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

@ -8,23 +8,23 @@ function bridge_slot_20() /* entry=373 class_id=0x0A03 slot=0x20 */
set_info(0x0211, *(arg_06));
if (var == 1) {
q = Item.getQLo(arg_06);
spawn class_0A03_slot_22(pid, q, arg_06);
spawn BRIDGE.slot_22(pid, q, arg_06);
suspend;
/* dword_to_word */
if (process_result == 1) {
spawn class_0A03_slot_24(pid, q, arg_06);
spawn BRIDGE.slot_24(pid, q, arg_06);
suspend;
spawn class_0A03_slot_26(0, q, arg_06);
spawn BRIDGE.slot_26(0, q, arg_06);
}
return;
}
else if (var == 2) {
q = Item.getQLo(arg_06);
spawn class_0A03_slot_23(pid, q, arg_06);
spawn BRIDGE.slot_23(pid, q, arg_06);
suspend;
/* dword_to_word */
if (process_result == 1) {
spawn class_0A03_slot_25(pid, q, arg_06);
spawn BRIDGE.slot_25(pid, q, arg_06);
suspend;
}
return;

View file

@ -7,9 +7,7 @@ function bridge_slot_22() /* entry=373 class_id=0x0A03 slot=0x22 */
x; /* [BP-04h] type=0x69 */
set_info(0x021B, *(arg_06));
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
while (!condition) {
if (Item.getFrame(item) == 0) {
x = Item.getQLo(item);

View file

@ -10,9 +10,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
entry:
set_info(0x021B, *(arg_06));
end = 0;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
block_03AC:
if condition goto block_03F2;
@ -37,9 +35,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if (end != 0) goto block_0479;
block_03FF:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
block_041F:
if condition goto block_0477;
@ -69,49 +65,28 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if (end != 0) goto block_054A;
block_0484:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_04A4:
if condition goto block_04DC;
block_04A7:
x = Item.getQLo(item);
if (x != end) goto block_04D8;
block_04C0:
/* word_to_dword */
/* pop_result */
goto block_0554;
block_04D8:
/* loopnext */
goto block_04A4;
for item in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) {
x = Item.getQLo(item);
if (x == end) {
/* word_to_dword */
/* pop_result */
return;
}
/* loopnext */
}
block_04DC:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_04FE:
if condition goto block_0548;
block_0501:
if (Item.getFrame(arg_06) != 1) goto block_0544;
block_0513:
x = Item.getQLo(item);
if (x != end) goto block_0544;
block_052C:
/* word_to_dword */
/* pop_result */
goto block_0554;
block_0544:
/* loopnext */
goto block_04FE;
for item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) {
if (Item.getFrame(arg_06) == 1) {
x = Item.getQLo(item);
if (x == end) {
/* word_to_dword */
/* pop_result */
return;
}
}
/* loopnext */
}
block_0548:

View file

@ -13,9 +13,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
entry:
set_info(0x021B, *(arg_06));
bridgemax = 0;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
block_05C8:
if condition goto block_05FC;
@ -52,9 +50,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
block_0632:
z = y;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
block_0659:
if condition goto block_0699;
@ -79,7 +75,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
if (z != y) goto block_06CC;
block_06A6:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
block_06CC:
@ -94,8 +90,8 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
if (Item.inFastArea(item) != 1) goto block_074A;
block_06EF:
class_0A03_slot_21(0x03A6, item);
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
BRIDGE.slot_21(0x03A6, item);
spawn FREE.waitNTimerTicks(pid, 15, 0x00000000);
suspend;
block_074A:
@ -110,7 +106,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
if (Item.inFastArea(item) != 1) goto block_07A5;
block_0770:
class_0A03_slot_21(0x03A6, item);
BRIDGE.slot_21(0x03A6, item);
block_07A5:
goto block_0759;

View file

@ -15,9 +15,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
entry:
set_info(0x021B, *(arg_06));
bridgemax = 0;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
block_0843:
if condition goto block_0877;
@ -38,9 +36,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (bridgemax != 0) goto block_08FD;
block_0884:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
block_08A4:
if condition goto block_08EA;
@ -81,9 +77,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
block_092A:
z = y;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
block_0951:
if condition goto block_0991;
@ -108,9 +102,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (z != y) goto block_0A43;
block_099E:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector item in selector_0x42(arg0=0x0336, arg1=0x0290, arg2=(70 * 32), origin=arg_06) */
block_09BE:
if condition goto block_0A10;
@ -138,7 +130,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (z != y) goto block_0A43;
block_0A1D:
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
suspend;
block_0A43:
@ -153,8 +145,8 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (Item.inFastArea(item) != 1) goto block_0AB6;
block_0A66:
class_0A03_slot_21(0x0336, item);
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
BRIDGE.slot_21(0x0336, item);
spawn FREE.waitNTimerTicks(pid, 15, 0x00000000);
suspend;
block_0AB6:
@ -168,21 +160,12 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0B4C;
block_0AE9:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
block_0B05:
if condition goto block_0B17;
block_0B08:
/* loopnext */
goto block_0B05;
for item3 in nearby_items(shape=0x04B8, origin=item2) {
/* loopnext */
}
block_0B17:
spawn class_0A1E_slot_28(pid, 1, 0, item2);
spawn ITEM.slot_28(pid, 1, 0, item2);
suspend;
goto block_0B57;
@ -204,7 +187,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (Item.inFastArea(item) != 1) goto block_0BAD;
block_0B83:
class_0A03_slot_21(0x0336, item);
BRIDGE.slot_21(0x0336, item);
block_0BAD:
/* loopscr value_u8=0x24 */
@ -217,21 +200,12 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0C43;
block_0BE0:
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
block_0BFC:
if condition goto block_0C0E;
block_0BFF:
/* loopnext */
goto block_0BFC;
for item3 in nearby_items(shape=0x04B8, origin=item2) {
/* loopnext */
}
block_0C0E:
spawn class_0A1E_slot_28(pid, 1, 0, item2);
spawn ITEM.slot_28(pid, 1, 0, item2);
suspend;
goto block_0C4E;

View file

@ -26,9 +26,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
if (bridgemax != 0) goto block_0D66;
block_0CFF:
/* 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=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
block_0D1F:
if condition goto block_0D53;
@ -66,9 +64,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
block_0D90:
z = y;
/* 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=0x03A6, arg1=0x0413, arg2=(70 * 32), origin=arg_06) */
block_0DB7:
if condition goto block_0E74;
@ -122,13 +118,13 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
if (retry != 0) goto block_0EB5;
block_0E8C:
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
suspend;
goto block_0EE5;
block_0EB5:
retry = (retry - 1);
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
block_0EE5:
@ -190,23 +186,23 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
while (!condition) {
n = item2;
class_0A0C_slot_20(pid, 8);
spawn class_0A11_slot_2D(retval, item, n);
FREE.slot_20(pid, 8);
spawn NPC.slot_2D(retval, item, n);
suspend;
/* loopnext */
}
}
else if (x == 2) {
class_0A03_slot_21(0x0336, item);
BRIDGE.slot_21(0x0336, item);
/* loopscr value_u8=0x24 */
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
while (!condition) {
/* loopnext */
}
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
spawn FREE.waitNTimerTicks(pid, delay, 0x00000000);
suspend;
if (Item.getFrame(item) == 1) {
class_0A03_slot_21(0x03A6, item);
BRIDGE.slot_21(0x03A6, item);
}
}
@ -214,7 +210,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
goto block_0FB3;
block_10E1:
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
spawn FREE.waitNTimerTicks(pid, delay, 0x00000000);
suspend;
goto block_0EF3;
@ -264,14 +260,14 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
block_11BB:
n = item2;
class_0A0C_slot_20(pid, 8);
spawn class_0A11_slot_2D(retval, item, n);
FREE.slot_20(pid, 8);
spawn NPC.slot_2D(retval, item, n);
suspend;
/* loopnext */
goto block_11B8;
block_11F3:
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
spawn FREE.waitNTimerTicks(pid, delay, 0x00000000);
suspend;
goto block_12ED;
@ -279,7 +275,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
if (cycletype != 2) goto block_12E7;
block_1236:
class_0A03_slot_21(0x0336, item);
BRIDGE.slot_21(0x0336, item);
/* loopscr value_u8=0x24 */
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
@ -291,12 +287,12 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
goto block_126E;
block_1280:
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
spawn FREE.waitNTimerTicks(pid, delay, 0x00000000);
suspend;
if (Item.getFrame(item) != 1) goto block_12E4;
block_12BA:
class_0A03_slot_21(0x03A6, item);
BRIDGE.slot_21(0x03A6, item);
block_12E4:
goto block_12ED;