Attempting to create a new event command
#2
if the check results in a branch. The routine will jump to the specified address CC CC CC and continue running from that location.

Otherwise it continues to the next line (byte/operator).

CC CC CC will be little endian value, this means the least significant value is first. So consider CC CC CC as C1 C2 C3 then the address will be reversed: $C3C2C1. Addresses in ASM refer to the snes bank addresses not the ROM address so make sure to add the header (+$200) if you have one and subtract $C00000 to get the ROM location of a pointer.

So for example:

Pointer to Character Portraits: $ED1D00 (would show up as 00 1D ED)

Location in a headered ROM: $ED1D00 - $C00000 + $000200 = $2D1F00 (in the ROM)
Reply


Messages In This Thread
RE: Attempting to create a new event command - by m06 - 04-05-2015, 11:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Command Change Custom Event GrayShadows 8 8,572 05-22-2022, 11:07 PM
Last Post: fedorajoe
  Invoke Game Saving Screen Event Command Morendo 1 1,776 09-05-2020, 10:29 PM
Last Post: C-Dude
  Attempting something... justincreedon 4 4,527 05-21-2015, 07:44 AM
Last Post: justincreedon
  How to create a new version of The Soul Shrine ShinMrKarate 23 21,982 11-01-2014, 06:42 AM
Last Post: Tenkarider
  Need help to create a custom event Astaroth_ 12 14,982 09-01-2013, 05:22 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)