Usecode pseudocode
This commit is contained in:
parent
f92d1504fa
commit
c12bb39437
1362 changed files with 71072 additions and 38056 deletions
|
|
@ -9,70 +9,41 @@ function deathbox_equip() /* entry=289 class_id=0x04E7 slot=0x0A */
|
|||
c, /* [BP-05h] type=0x62 */
|
||||
counter; /* [BP-07h] type=0x69 */
|
||||
|
||||
entry:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getStatus(arg_06) & 0x1000) goto block_012D;
|
||||
|
||||
block_0124:
|
||||
goto block_025A;
|
||||
|
||||
block_012A:
|
||||
goto block_025A;
|
||||
|
||||
block_012D:
|
||||
set_info(0x0211, *(arg_06));
|
||||
process_exclude();
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (!(Item.getStatus(arg_06) & 0x1000)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 12, 0x00000000);
|
||||
suspend;
|
||||
class_0A1E_slot_23(0x1000, arg_06);
|
||||
if (var != 2) goto block_024B;
|
||||
|
||||
block_016A:
|
||||
/* 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_0187:
|
||||
if condition goto block_01E4;
|
||||
|
||||
block_018A:
|
||||
if (Item.pop(sswitch) != 10) goto block_01B0;
|
||||
|
||||
block_019F:
|
||||
a = Item.getFrame(sswitch);
|
||||
goto block_01D6;
|
||||
|
||||
block_01B0:
|
||||
if (Item.pop(sswitch) != 11) goto block_01D6;
|
||||
|
||||
block_01C5:
|
||||
b = Item.getFrame(sswitch);
|
||||
goto block_01D6;
|
||||
|
||||
block_01D6:
|
||||
counter = (1 + counter);
|
||||
/* loopnext */
|
||||
goto block_0187;
|
||||
|
||||
block_01E4:
|
||||
if ((b != 4) && (a != 0)) goto block_0248;
|
||||
|
||||
block_01FA:
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, 0x0080, *(arg_06), arg_06);
|
||||
suspend;
|
||||
|
||||
block_0248:
|
||||
goto block_024B;
|
||||
|
||||
block_024B:
|
||||
if (var == 2) {
|
||||
/* 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 */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(sswitch) == 10) {
|
||||
a = Item.getFrame(sswitch);
|
||||
}
|
||||
else if (Item.getQLo(sswitch) == 11) {
|
||||
b = Item.getFrame(sswitch);
|
||||
}
|
||||
counter = (1 + counter);
|
||||
/* loopnext */
|
||||
}
|
||||
if ((b == 4) && (a != 0)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, 0x0080, *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
class_0A1E_slot_24(0x1000, arg_06);
|
||||
|
||||
block_025A:
|
||||
return;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue