• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Help with pointers

  • 2
    Posts
    6
    Years
    • Seen Aug 13, 2018
    Hi everyone. I know this sounds like a silly question, but i'm having trouble with calculating pointers for dialogue in pokemon Emerald. The pointers seem to be little endian so I have reversed the bytes, but I feel like I'm missing something...

    Dialogue: "Welcome to the world of Pokemon!"
    Offset: 0x2C899A

    Calculations (using the programmer calculator on my computer):

    + 08000000 =
    0x82C899A

    Reversed (honestly not sure if I've done this step right):

    0x9A892C8

    There are two things I think I've done wrong. First, using the wrong offset. Birch's speech actually starts with "Hi! Sorry to keep you waiting." so i need to use the offset for that. But that's not really the point. I'm confused about calculating the pointer. If you can see anything wrong, please point it out to me! :)

    Also, you know how strings are terminated with 0xFF... do each of them have their own pointer? Or am I misunderstanding about this too?
     
    Back
    Top