Pseudocode and stuff
This commit is contained in:
parent
7310c4fe96
commit
ee33f94b4b
466 changed files with 27770 additions and 276 deletions
|
|
@ -0,0 +1,78 @@
|
|||
function deathbox_equip() /* entry=289 class_id=0x04E7 slot=0x0A */
|
||||
{
|
||||
var
|
||||
referent, /* [BP+00h] type=0x69 */
|
||||
var, /* [BP+0Ah] type=0x69 */
|
||||
sswitch, /* [BP-02h] type=0x24 */
|
||||
a, /* [BP-03h] type=0x62 */
|
||||
b, /* [BP-04h] type=0x62 */
|
||||
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:
|
||||
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:
|
||||
class_0A1E_slot_24(0x1000, arg_06);
|
||||
|
||||
block_025A:
|
||||
return;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue