Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -5,43 +5,29 @@ function bridge_slot_20() /* entry=373 class_id=0x0A03 slot=0x20 */
|
|||
var, /* [BP+0Ah] type=0x69 */
|
||||
q; /* [BP-02h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x0211, *(arg_06));
|
||||
if (var != 1) goto block_0195;
|
||||
|
||||
block_0122:
|
||||
q = Item.pop(arg_06);
|
||||
set_info(0x0211, *(arg_06));
|
||||
if (var == 1) {
|
||||
q = Item.getQLo(arg_06);
|
||||
spawn class_0A03_slot_22(pid, q, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result != 1) goto block_0192;
|
||||
|
||||
block_015B:
|
||||
spawn class_0A03_slot_24(pid, q, arg_06);
|
||||
suspend;
|
||||
spawn class_0A03_slot_26(0, q, arg_06);
|
||||
|
||||
block_0192:
|
||||
goto block_01FF;
|
||||
|
||||
block_0195:
|
||||
if (var != 2) goto block_01FF;
|
||||
|
||||
block_01A0:
|
||||
q = Item.pop(arg_06);
|
||||
if (process_result == 1) {
|
||||
spawn class_0A03_slot_24(pid, q, arg_06);
|
||||
suspend;
|
||||
spawn class_0A03_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);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result != 1) goto block_01FC;
|
||||
|
||||
block_01D9:
|
||||
spawn class_0A03_slot_25(pid, q, arg_06);
|
||||
suspend;
|
||||
|
||||
block_01FC:
|
||||
goto block_01FF;
|
||||
|
||||
block_01FF:
|
||||
if (process_result == 1) {
|
||||
spawn class_0A03_slot_25(pid, q, arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,21 +6,15 @@ function bridge_slot_21() /* entry=373 class_id=0x0A03 slot=0x21 */
|
|||
x, /* [BP-02h] type=0x69 */
|
||||
item2; /* [BP-04h] type=0x24 */
|
||||
|
||||
entry:
|
||||
x = Intrinsic0016(item);
|
||||
if ((x != 0x0413) || (x != 0x0290)) goto block_026E;
|
||||
|
||||
block_024F:
|
||||
if (newtype != 0x03A6) goto block_0266;
|
||||
|
||||
block_025B:
|
||||
newtype = 0x0413;
|
||||
goto block_026E;
|
||||
|
||||
block_0266:
|
||||
newtype = 0x0290;
|
||||
|
||||
block_026E:
|
||||
return;
|
||||
|
||||
x = Item.getShape(item);
|
||||
if ((x == 0x0413) || (x != 0x0290)) {
|
||||
if (newtype == 0x03A6) {
|
||||
newtype = 0x0413;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
newtype = 0x0290;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,37 +6,22 @@ function bridge_slot_22() /* entry=373 class_id=0x0A03 slot=0x22 */
|
|||
item, /* [BP-02h] type=0x24 */
|
||||
x; /* [BP-04h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x021B, *(arg_06));
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_02EA:
|
||||
if condition goto block_0334;
|
||||
|
||||
block_02ED:
|
||||
if (Item.getFrame(item) != 0) goto block_0330;
|
||||
|
||||
block_02FF:
|
||||
x = Item.pop(item);
|
||||
if (x != start) goto block_0330;
|
||||
|
||||
block_0318:
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
goto block_0340;
|
||||
|
||||
block_0330:
|
||||
set_info(0x021B, *(arg_06));
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getFrame(item) == 0) {
|
||||
x = Item.getQLo(item);
|
||||
if (x == start) {
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
goto block_02EA;
|
||||
|
||||
block_0334:
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
goto block_0340;
|
||||
|
||||
block_0340:
|
||||
return;
|
||||
|
||||
}
|
||||
/* word_to_dword */
|
||||
/* pop_result */
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
|
|||
if condition goto block_03F2;
|
||||
|
||||
block_03AF:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_03EE;
|
||||
|
||||
block_03C8:
|
||||
x = Item.getCX(item);
|
||||
x = Item.getQHi(item);
|
||||
if (x != 0) goto block_03EE;
|
||||
|
||||
block_03E1:
|
||||
|
|
@ -48,11 +48,11 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
|
|||
if (Item.getFrame(item) != 1) goto block_0473;
|
||||
|
||||
block_0434:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_0473;
|
||||
|
||||
block_044D:
|
||||
x = Item.getCX(item);
|
||||
x = Item.getQHi(item);
|
||||
if (x != 0) goto block_0473;
|
||||
|
||||
block_0466:
|
||||
|
|
@ -77,7 +77,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
|
|||
if condition goto block_04DC;
|
||||
|
||||
block_04A7:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != end) goto block_04D8;
|
||||
|
||||
block_04C0:
|
||||
|
|
@ -101,7 +101,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
|
|||
if (Item.getFrame(arg_06) != 1) goto block_0544;
|
||||
|
||||
block_0513:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != end) goto block_0544;
|
||||
|
||||
block_052C:
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
|
|||
if condition goto block_05FC;
|
||||
|
||||
block_05CB:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_05F8;
|
||||
|
||||
block_05E4:
|
||||
bridgemax = Item.getCX(item);
|
||||
bridgemax = Item.getQHi(item);
|
||||
goto block_05FC;
|
||||
|
||||
block_05F8:
|
||||
|
|
@ -60,7 +60,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
|
|||
if condition goto block_0699;
|
||||
|
||||
block_065C:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != y) goto block_0695;
|
||||
|
||||
block_0675:
|
||||
|
|
@ -91,7 +91,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
|
|||
foreach_list item -> block_0750;
|
||||
|
||||
block_06DD:
|
||||
if (Intrinsic002C(item) != 1) goto block_074A;
|
||||
if (Item.inFastArea(item) != 1) goto block_074A;
|
||||
|
||||
block_06EF:
|
||||
class_0A03_slot_21(0x03A6, item);
|
||||
|
|
@ -107,7 +107,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
|
|||
foreach_list item -> block_07AB;
|
||||
|
||||
block_075E:
|
||||
if (Intrinsic002C(item) != 1) goto block_07A5;
|
||||
if (Item.inFastArea(item) != 1) goto block_07A5;
|
||||
|
||||
block_0770:
|
||||
class_0A03_slot_21(0x03A6, item);
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if condition goto block_0877;
|
||||
|
||||
block_0846:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_0873;
|
||||
|
||||
block_085F:
|
||||
bridgemax = Item.getCX(item);
|
||||
bridgemax = Item.getQHi(item);
|
||||
goto block_0877;
|
||||
|
||||
block_0873:
|
||||
|
|
@ -49,11 +49,11 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if (Item.getFrame(arg_06) != 1) goto block_08E6;
|
||||
|
||||
block_08B9:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_08E6;
|
||||
|
||||
block_08D2:
|
||||
bridgemax = Item.getCX(item);
|
||||
bridgemax = Item.getQHi(item);
|
||||
goto block_08EA;
|
||||
|
||||
block_08E6:
|
||||
|
|
@ -89,7 +89,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if condition goto block_0991;
|
||||
|
||||
block_0954:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != y) goto block_098D;
|
||||
|
||||
block_096D:
|
||||
|
|
@ -119,7 +119,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if (Item.getFrame(arg_06) != 1) goto block_0A0C;
|
||||
|
||||
block_09D3:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != y) goto block_0A0C;
|
||||
|
||||
block_09EC:
|
||||
|
|
@ -150,7 +150,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
foreach_list item -> block_0B63;
|
||||
|
||||
block_0A54:
|
||||
if (Intrinsic002C(item) != 1) goto block_0AB6;
|
||||
if (Item.inFastArea(item) != 1) goto block_0AB6;
|
||||
|
||||
block_0A66:
|
||||
class_0A03_slot_21(0x0336, item);
|
||||
|
|
@ -165,7 +165,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if condition goto block_0B5B;
|
||||
|
||||
block_0AC7:
|
||||
if ((Intrinsic003C(item2) != 6) && (Item.isNpc(item2) != 0)) goto block_0B4C;
|
||||
if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0B4C;
|
||||
|
||||
block_0AE9:
|
||||
/* loopscr value_u8=0x24 */
|
||||
|
|
@ -201,7 +201,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
foreach_list item -> block_0C5A;
|
||||
|
||||
block_0B71:
|
||||
if (Intrinsic002C(item) != 1) goto block_0BAD;
|
||||
if (Item.inFastArea(item) != 1) goto block_0BAD;
|
||||
|
||||
block_0B83:
|
||||
class_0A03_slot_21(0x0336, item);
|
||||
|
|
@ -214,7 +214,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
|
|||
if condition goto block_0C52;
|
||||
|
||||
block_0BBE:
|
||||
if ((Intrinsic003C(item2) != 6) && (Item.isNpc(item2) != 0)) goto block_0C43;
|
||||
if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0C43;
|
||||
|
||||
block_0BE0:
|
||||
/* loopscr value_u8=0x24 */
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
if condition goto block_0D53;
|
||||
|
||||
block_0D22:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != start) goto block_0D4F;
|
||||
|
||||
block_0D3B:
|
||||
bridgemax = Item.getCX(item);
|
||||
bridgemax = Item.getQHi(item);
|
||||
goto block_0D53;
|
||||
|
||||
block_0D4F:
|
||||
|
|
@ -74,14 +74,14 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
if condition goto block_0E74;
|
||||
|
||||
block_0DBA:
|
||||
x = Item.pop(item);
|
||||
x = Item.getQLo(item);
|
||||
if (x != y) goto block_0E70;
|
||||
|
||||
block_0DD3:
|
||||
if (x != (start + 1)) goto block_0E50;
|
||||
|
||||
block_0DE1:
|
||||
a = Item.getCX(item);
|
||||
a = Item.getQHi(item);
|
||||
if (a < 0) goto block_0E05;
|
||||
|
||||
block_0DFA:
|
||||
|
|
@ -147,7 +147,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
foreach_list item -> block_0F32;
|
||||
|
||||
block_0F10:
|
||||
if (Intrinsic002C(item) != 0) goto block_0F2C;
|
||||
if (Item.inFastArea(item) != 0) goto block_0F2C;
|
||||
|
||||
block_0F22:
|
||||
x = (1 + x);
|
||||
|
|
@ -185,52 +185,30 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
foreach_list item -> block_10E1;
|
||||
|
||||
block_0FB8:
|
||||
x = Item.getFrame(item);
|
||||
if (x != 1) goto block_101F;
|
||||
|
||||
block_0FD1:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
|
||||
block_0FDF:
|
||||
if condition goto block_101A;
|
||||
|
||||
block_0FE2:
|
||||
n = item2;
|
||||
class_0A0C_slot_20(pid, 8);
|
||||
spawn class_0A11_slot_2D(retval, item, n);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
goto block_0FDF;
|
||||
|
||||
block_101A:
|
||||
goto block_10DB;
|
||||
|
||||
block_101F:
|
||||
if (x != 2) goto block_10DB;
|
||||
|
||||
block_102A:
|
||||
class_0A03_slot_21(0x0336, item);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
|
||||
|
||||
block_1062:
|
||||
if condition goto block_1074;
|
||||
|
||||
block_1065:
|
||||
/* loopnext */
|
||||
goto block_1062;
|
||||
|
||||
block_1074:
|
||||
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getFrame(item) != 1) goto block_10D8;
|
||||
|
||||
block_10AE:
|
||||
class_0A03_slot_21(0x03A6, item);
|
||||
|
||||
block_10D8:
|
||||
goto block_10DB;
|
||||
if (x == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* 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);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (x == 2) {
|
||||
class_0A03_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);
|
||||
suspend;
|
||||
if (Item.getFrame(item) == 1) {
|
||||
class_0A03_slot_21(0x03A6, item);
|
||||
}
|
||||
}
|
||||
|
||||
block_10DB:
|
||||
goto block_0FB3;
|
||||
|
|
@ -246,7 +224,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
foreach_list item -> block_113D;
|
||||
|
||||
block_1118:
|
||||
if (Intrinsic002C(item) != 1) goto block_1137;
|
||||
if (Item.inFastArea(item) != 1) goto block_1137;
|
||||
|
||||
block_112A:
|
||||
|
||||
|
|
@ -262,13 +240,13 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
|
|||
foreach_list item -> block_12F3;
|
||||
|
||||
block_1153:
|
||||
if (Intrinsic002C(item) != 0) goto block_116B;
|
||||
if (Item.inFastArea(item) != 0) goto block_116B;
|
||||
|
||||
block_1165:
|
||||
goto block_12F6;
|
||||
|
||||
block_116B:
|
||||
x = Intrinsic0016(item);
|
||||
x = Item.getShape(item);
|
||||
if ((x != 0x0336) || (x != 0x0290)) goto block_1192;
|
||||
|
||||
block_118C:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue