[00 XXXXXX] [01 XXXXXX] - Push XXXXXX to stack, sign extended [02 XXXXXX] [03 XXXXXX] [04 00 00 00] - Delay parsing 01: Number of frames [04 00 01 00] 01 [04 00 02 00] - UNUSED [04 00 03 00] 01 [04 00 04 00] [04 00 05 00] 01 [04 00 06 00] 01 [04 00 07 00] [04 00 08 00] [04 00 09 00] - UNUSED [04 00 0A 00] - Sets event flag 02: Event Flag ID 01: Value [04 00 0B 00] - Store byte to (SRAM_BASE + 0x380 + $02) 02: Offset 01: Value to store [04 00 0C 00] - Store halfword to (SRAM_BASE + 0x3C0 + ($02 * 2)) 02: Offset 01: Value to store [04 00 0D 00] - Push event flag state to stack 01: Event Flag ID [04 00 0E 00] - Push byte from (SRAM_BASE + 0x380 + $01) to stack 01: Offset [04 00 0F 00] - Push halfword from (SRAM_BASE + 0x3C0 + ($01 * 2)) to stack 01: Offset [04 00 10 00] - Compare value to event flag value, push 1 if true, 0 if false 02: Event flag ID 01: Value [04 00 11 00] - Compare byte at (SRAM_BASE + 0x380 + $2) to $1, push 1 if equal, 0 otherwise 02: Offset 01: Value to compare [04 00 12 00] - Compare halfword at (SRAM_BASE + 0x380 + $2) to $1, push 1 if equal, 0 otherwise 02: Offset 01: Value to compare [04 00 13 00] - UNUSED [04 00 14 00] 01: Map ID? [04 00 15 00] - Push current map ID [04 00 16 00] - Add to money carried 01: Amount of money [04 00 17 00] - Push money carried [04 00 18 00] - Set key item value 02: Item ID 01: Value [04 00 19 00] 01 [04 00 1A 00] - Push number of characters in party [04 00 1B 00] - Check if character is in party, push 1 if true, 0 if false 01: Character [04 00 1C 00] - Check if character is in party, push 0 if true, -1 if false 01: Character [04 00 1D 00] 01 [04 00 1E 00] - Add character to party 01: Character [04 00 1F 00] - Remove character from party 01: Character [04 00 20 00] - Set ??? flag 01: Value complement [04 00 21 00] - Set giftbox flag 02: Giftbox ID 01: Value [04 00 22 00] - Push giftbox flag value 01: Giftbox ID [04 00 23 00] - Restore HP/PP of character, clears status ailments 01: Character [04 00 24 00] 01 [04 00 25 00] - Add to money in bank 01: Amount [04 00 26 00] - Push money in bank [04 00 27 00] 01 [04 00 28 00] [04 00 29 00] 01 [04 00 2A 00] 01 [04 00 2B 00] - Set character level and sprite 03: Character 02: Level 01: Sprite ID [04 00 2C 00] - Add items to character inventory 03: Character 02: Item ID 01: Item count [04 00 2D 00] - Copy character's HP/PP to stack 05: Character 04: Stack slot - HP 03: Stack slot - Max HP 02: Stack slot - PP 01: Stack slot - Max PP [04 00 2E 00] - Store word in SRAM 01: Value [04 00 2F 00] - Push word from SRAM [04 00 30 00] - Change status ailments 03: Party member 02: Ailment ID 01: Ailment value [04 00 31 00] 05 04 03 02 01 [04 00 32 00] - Displays text entry from current bank 03: Speaker (-1 for interacted npc/object, -2 for first party member, etc) 02: Unused 01: Text entry [04 00 33 00] - Displays text entry from zero bank 03: Speaker (-1 for interacted npc/object, -2 for first party member, etc) 02: Unused 01: Text entry [04 00 34 00] [04 00 35 00] [04 00 36 00] - Screen fade [04 00 37 00] 01 [04 00 38 00] 04 03 02 01 [04 00 39 00] 02 01 [04 00 3A 00] [04 00 3B 00] [04 00 3C 00] 04 03 02 01 [04 00 3D 00] 01 [04 00 3E 00] 01 [04 00 3F 00] 03 02 01 [04 00 40 00] 03 02 01 [04 00 41 00] 02 01 [04 00 42 00] 03 02 01 [04 00 43 00] 02 01 [04 00 44 00] 02 01 [04 00 45 00] 01 [04 00 46 00] 01 [04 00 47 00] 02 01 [04 00 48 00] 08 07 06 05 04 03 02 01 [04 00 49 00] 01 [04 00 4A 00] 02 01 [04 00 4B 00] 04 03 02 01 [04 00 4C 00] 03 02 01 [04 00 4D 00] 04 03 02 01 [04 00 4E 00] 04 03 02 01 [04 00 4F 00] 01 [04 00 50 00] 04 03 02 01 [04 00 51 00] 03 02 01 [04 00 52 00] 04 03 02 01 [04 00 53 00] 05 04 03 02 01 [04 00 54 00] 05 04 03 02 01 [04 00 55 00] 04 03 02 01 [04 00 56 00] 04 03 02 01 [04 00 57 00] 03 02 01 [04 00 58 00] 03 02 01 [04 00 59 00] [04 00 5A 00] 02 01 [04 00 5B 00] 03 02 01 [04 00 5C 00] 03 02 01 [04 00 5D 00] 02 01 [04 00 5E 00] 02 01 [04 00 5F 00] 01 [04 00 60 00] 04 03 02 01 [04 00 61 00] 01 [04 00 62 00] 02 01 [04 00 63 00] 02 01 [04 00 64 00] 03 02 01 [04 00 65 00] 02 01 [04 00 66 00] 02 01 [04 00 67 00] [04 00 68 00] 02 01 [04 00 69 00] [04 00 6A 00] [04 00 6B 00] 04 03 02 01 [04 00 6C 00] 02 01 [04 00 6D 00] 03 02 01 [04 00 6E 00] 02 01 [04 00 6F 00] 01 [04 00 70 00] 01 [04 00 71 00] 03 02 01 [04 00 72 00] 03 02 01 [04 00 73 00] 04 03 02 01 [04 00 74 00] 03 02 01 [04 00 75 00] 03 02 01 [04 00 76 00] 04 03 02 01 [04 00 77 00] [04 00 78 00] 03 02 01 [04 00 79 00] 01 [04 00 7A 00] 04 03 02 01 [04 00 7B 00] [04 00 7C 00] [04 00 7D 00] 02 01 [04 00 7E 00] 01 [04 00 7F 00] 04 03 02 01 [04 00 80 00] 04 03 02 01 [04 00 81 00] 01 [04 00 82 00] 02 01 [04 00 83 00] 02 01 [04 00 84 00] 03 02 01 [04 00 85 00] 03 02 01 [04 00 86 00] 01 [04 00 87 00] 01 [04 00 88 00] 04 03 02 01 [04 00 89 00] 02 01 [04 00 8A 00] 03 02 01 [04 00 8B 00] 02 01 [04 00 8C 00] - Start battle 01: Event battle formation ID [04 00 8D 00] [04 00 8E 00] [04 00 8F 00] [04 00 90 00] 01 [04 00 91 00] [04 00 92 00] [04 00 93 00] 01 [04 00 94 00] - UNUSED [04 00 95 00] - UNUSED [04 00 96 00] 01 [04 00 97 00] - UNUSED [04 00 98 00] - UNUSED [04 00 99 00] - UNUSED [04 00 9A 00] - UNUSED [04 00 9B 00] - UNUSED [04 00 9C 00] - UNUSED [04 00 9D 00] - UNUSED [04 00 9E 00] - UNUSED [04 00 9F 00] - UNUSED [04 00 A0 00] 02 01 [04 00 A1 00] [04 00 A2 00] 01 [04 00 A3 00] 01 [04 00 A4 00] [04 00 A5 00] [04 00 A6 00] [04 00 A7 00] - UNUSED [04 00 A8 00] - UNUSED [04 00 A9 00] - UNUSED [04 00 AA 00] [04 00 AB 00] 04 03 02 01 [04 00 AC 00] 01 [04 00 AD 00] 04 03 02 01 [04 00 AE 00] 01 [04 00 AF 00] [04 00 B0 00] [04 00 B1 00] [04 00 B2 00] - UNUSED [04 00 B3 00] - UNUSED [04 00 B4 00] 06 05 04 03 02 01 [04 00 B5 00] 01 [04 00 B6 00] 02 01 [04 00 B7 00] [04 00 B8 00] 04 03 02 01 [04 00 B9 00] 01 [04 00 BA 00] 03 02 01 [04 00 BB 00] 03 02 01 [04 00 BC 00] 02 01 [04 00 BD 00] 01 [04 00 BE 00] 05 04 03 02 01 [04 00 BF 00] [04 00 C0 00] 03 02 01 [04 00 C1 00] 01 [04 00 C2 00] 02 01 [04 00 C3 00] 02 01 [04 00 C4 00] 02 01 [04 00 C5 00] 02 01 [04 00 C6 00] 01 [04 00 C7 00] 02 01 [04 00 C8 00] [04 00 C9 00] [04 00 CA 00] 03 02 01 [04 00 CB 00] 02 01 [04 00 CC 00] 01 [04 00 CD 00] 01 [04 00 CE 00] 02 01 [04 00 CF 00] 04 03 02 01 [04 00 D0 00] 01 [04 00 D1 00] 01 [04 00 D2 00] 02 01 [04 00 D3 00] 02 01 [04 00 D4 00] 02 01 [04 00 D5 00] 02 01 [04 00 D6 00] 01 [04 00 D7 00] 06 05 04 03 02 01 [04 00 D8 00] [04 00 D9 00] 07 06 05 04 03 02 01 [04 00 DA 00] 02 01 [04 00 DB 00] 01 [04 00 DC 00] 01 [04 00 DD 00] 02 01 [04 00 DE 00] 01 [04 00 DF 00] 02 01 [04 00 E0 00] 02 01 [04 00 E1 00] 01 [04 00 E2 00] 01 [04 00 E3 00] 01 [04 00 E4 00] 02 01 [04 00 E5 00] 03 02 01 [04 00 E6 00] 05 04 03 02 01 [04 00 E7 00] 02 01 [04 00 E8 00] 01 [04 00 E9 00] 01 [04 00 EA 00] 05 04 03 02 01 [04 00 EB 00] 01 [04 00 EC 00] 01 [04 00 ED 00] 02 01 [04 00 EE 00] 02 01 [04 00 EF 00] 03 02 01 [04 00 F0 00] 01 [04 00 F1 00] 01 [04 00 F2 00] 05 04 03 02 01 [04 00 F3 00] 02 01 [04 00 F4 00] 03 02 01 [04 00 F5 00] 02 01 [04 00 F6 00] [04 00 F7 00] 02 01 [04 00 F8 00] [04 00 F9 00] [04 00 FA 00] [04 00 FB 00] [04 00 FC 00] [04 00 FD 00] 01 [04 00 FE 00] 02 01 [04 00 FF 00] 02 01 [05 XX YY ZZ] - Call special sequence ? [07 00 XXXX] - Jump to address XXXX and return [09 000000] - End of entry [0A XXXXXX] - Add XXXXXX to stack pointer A [0B XXXXXX] - Add XXXXXX to stack pointer B [0C 00 XXXX] - Jump to address XXXX [0D 00 XXXX] - Jump to address XXXX if !value 01: Value to check [0E 00 00 00] - Negates value 01: Value [0E 01 00 00] - Push value A + value B to stack 02: Value B 01: Value A [0E 02 00 00] - Push value B - value A to stack 02: Value B 01: Value A [0E 03 00 00] - Push value A * value B to stack 02: Value B 01: Value A [0E 04 00 00] - Push value B / value A to stack 02: Value B 01: Value A [0E 05 00 00] - Push value B % value A to stack 02: Value B 01: Value A [0E 06 00 00] - Push value + 1 to stack 01: Value [0E 07 00 00] - Push value - 1 to stack 01: Value [0E 08 00 00] - Push value A & value B to stack 02: Value B 01: Value A [0E 09 00 00] - Push value A | value B to stack 02: Value B 01: Value A [0E 0A 00 00] - Push 1 to stack if value A == value B, 0 otherwise 02: Value B 01: Value A [0E 0B 00 00] - Push 1 to stack if value A != value B, 0 otherwise 02: Value B 01: Value A [0E 0C 00 00] - Push 1 to stack if value A > value B, 0 otherwise 02: Value B 01: Value A [0E 0D 00 00] - Push 1 to stack if value A < value B, 0 otherwise 02: Value B 01: Value A [0E 0E 00 00] - Push 1 to stack if value A >= value B, 0 otherwise 02: Value B 01: Value A [0E 0F 00 00] - Push 1 to stack if value A <= value B, 0 otherwise 02: Value B 01: Value A [0E 10 00 00] - Push copy of value at top of stack [0E 11 00 00] - Decrements stack pointer [0E 12 00 00] - Decrements stack pointer [0E 13 00 00] - Do nothing