Pseudocode and stuff

This commit is contained in:
MaddoScientisto 2026-03-25 23:32:13 +01:00
commit ee33f94b4b
466 changed files with 27770 additions and 276 deletions

View file

@ -0,0 +1,9 @@
function bbetty_leaveFastArea() /* entry=371 class_id=0x0A01 slot=0x10 */
{
entry:
set_info(0x0001, *(arg_06));
process_exclude();
class_0A0C_slot_33(1, *(arg_06));
return;
}

View file

@ -0,0 +1,56 @@
function bbetty_slot_20() /* entry=371 class_id=0x0A01 slot=0x20 */
{
var
referent, /* [BP+00h] type=0x69 */
item, /* [BP-02h] type=0x24 */
counter, /* [BP-04h] type=0x69 */
counter2, /* [BP-06h] type=0x69 */
total; /* [BP-08h] type=0x69 */
entry:
set_info(0x0205, *(arg_06));
if (Intrinsic0016(arg_06) != 0x02C9) goto block_0232;
block_010F:
counter = 0;
block_0116:
if (counter <= 4) goto block_0219;
block_011E:
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
block_0142:
if condition goto block_015E;
block_0145:
total = (1 + total);
/* loopnext */
goto block_0142;
block_015E:
counter2 = 1;
block_019B:
if (counter2 <= total) goto block_01E6;
block_01A6:
item = Intrinsic0023();
counter2 = (1 + counter2);
goto block_019B;
block_01E6:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0116;
block_0219:
block_0232:
spawn class_0A01_slot_21(arg_06);
return;
}

View file

@ -0,0 +1,124 @@
function bbetty_slot_21() /* entry=371 class_id=0x0A01 slot=0x21 */
{
var
referent, /* [BP+00h] type=0x69 */
x, /* [BP-02h] type=0x69 */
y, /* [BP-04h] type=0x69 */
xx, /* [BP-06h] type=0x69 */
yy, /* [BP-08h] type=0x69 */
counter, /* [BP-0Ah] type=0x69 */
dir, /* [BP-0Bh] type=0x62 */
item3; /* [BP-0Dh] type=0x24 */
entry:
set_info(0x00F0, *(arg_06));
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend;
block_02BB:
suspend;
if Item.getCX(arg_06) goto block_0312;
block_02D7:
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
dir = Intrinsic0027(Intrinsic0013(Item.legal_create(8, 0, 8)), Item.legal_create(arg_06), Intrinsic0013(arg_06));
goto block_0331;
block_0312:
dir = (1 + dir);
if (dir > 7) goto block_0331;
block_032A:
dir = 0;
block_0331:
if (dir != 0) goto block_0358;
block_0339:
x = 0;
y = -1;
xx = -16;
yy = -48;
goto block_0469;
block_0358:
if (dir != 1) goto block_037F;
block_0360:
x = 1;
y = -1;
xx = 16;
yy = -48;
goto block_0469;
block_037F:
if (dir != 2) goto block_03A6;
block_0387:
x = 1;
y = 0;
xx = 16;
yy = -16;
goto block_0469;
block_03A6:
if (dir != 3) goto block_03CD;
block_03AE:
x = 1;
y = 1;
xx = 16;
yy = 16;
goto block_0469;
block_03CD:
if (dir != 4) goto block_03F4;
block_03D5:
x = 0;
y = 1;
xx = -16;
yy = 16;
goto block_0469;
block_03F4:
if (dir != 5) goto block_041B;
block_03FC:
x = -1;
y = 1;
xx = -48;
yy = 16;
goto block_0469;
block_041B:
if (dir != 6) goto block_0442;
block_0423:
x = -1;
y = 0;
xx = -48;
yy = -16;
goto block_0469;
block_0442:
if (dir != 7) goto block_0469;
block_044A:
x = -1;
y = -1;
xx = -48;
yy = -48;
goto block_0469;
block_0469:
class_0A0C_slot_20(8, 30, 15);
spawn class_0A0C_slot_32(pid, ((5 - Intrinsic0029()) * 20), 0x00000000);
suspend;
goto block_02BB;
block_051B:
return;
}