Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -3,14 +3,14 @@ function miss6_hatch() /* entry=358 class_id=0x0912 slot=0x07 */
|
|||
set_info(0x0210, *(arg_06));
|
||||
process_exclude();
|
||||
if (Egg.getEggId(arg_06) == 1) {
|
||||
class_0A0C_slot_41();
|
||||
spawn class_0912_slot_20(pid, arg_06);
|
||||
FREE.slot_41();
|
||||
spawn MISS6.slot_20(pid, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else if (Egg.getEggId(arg_06) == 2) {
|
||||
/* pop_global global_id=0x34 size=0x1 */
|
||||
spawn class_0912_slot_21(1, pid, arg_06);
|
||||
spawn MISS6.slot_21(1, pid, arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,43 +11,29 @@ function miss6_slot_20() /* entry=358 class_id=0x0912 slot=0x20 */
|
|||
set_info(0x0001, *(arg_06));
|
||||
/* global_address global_id=0x3C */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for n in nearby_items(shape=0x04DC, origin=global[0x003C]) {
|
||||
/* loopnext */
|
||||
}
|
||||
if (!snell) {
|
||||
suspend;
|
||||
door = 0;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=door_shape_0095, origin=global[0x003C]) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == 19) {
|
||||
door = item;
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
doorX = Item.getX(door);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (door) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=0x0493, origin=global[0x003C]) {
|
||||
door = item;
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
doorX = Item.getX(door);
|
||||
/* loopnext */
|
||||
|
|
@ -56,32 +42,32 @@ function miss6_slot_20() /* entry=358 class_id=0x0912 slot=0x20 */
|
|||
/* global_address global_id=0x3C */
|
||||
if (Item.getX() <= doorX) {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 1, 12);
|
||||
spawn NPC.slot_22(pid, 1, 12);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
/* global_address global_id=0x3C */
|
||||
if (Item.getX() >= (doorX - 64)) {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 1, 4);
|
||||
spawn NPC.slot_22(pid, 1, 4);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 4, 0);
|
||||
spawn NPC.slot_22(pid, 4, 0);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 2, 14);
|
||||
spawn NPC.slot_22(pid, 2, 14);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 2, 4, snell);
|
||||
spawn NPC.slot_22(pid, 2, 4, snell);
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 1, 6, snell);
|
||||
spawn NPC.slot_22(pid, 1, 6, snell);
|
||||
suspend;
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
|
|
@ -94,18 +80,18 @@ function miss6_slot_20() /* entry=358 class_id=0x0912 slot=0x20 */
|
|||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 1, 4, snell);
|
||||
spawn NPC.slot_22(pid, 1, 4, snell);
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 1, 2, snell);
|
||||
spawn NPC.slot_22(pid, 1, 2, snell);
|
||||
suspend;
|
||||
spawn class_0A11_slot_22(pid, 1, 4, snell);
|
||||
spawn NPC.slot_22(pid, 1, 4, snell);
|
||||
suspend;
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A11_slot_24(pid, snell);
|
||||
spawn NPC.slot_24(pid, snell);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
suspend;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
function miss6_slot_21() /* entry=358 class_id=0x0912 slot=0x21 */
|
||||
{
|
||||
set_info(0x0001, *(arg_06));
|
||||
spawn class_0A0C_slot_26(pid, "6f", 0x00000000);
|
||||
spawn FREE.slot_26(pid, "6f", 0x00000000);
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
suspend;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue