News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Pointers help  (Read 2152 times)

mikey3

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Pointers help
« on: April 04, 2013, 12:55:27 pm »
So if you have the offset $00EFAF0, and it's pointer F0FA0E00 (I think?). I followed this-
http://www.romhacking.net/forum/index.php?topic=13825.0
but when I search for the offset with the bytes in reverse, there is no results. What am I doing wrong?

Pikachumanson

  • Hero Member
  • *****
  • Posts: 607
    • View Profile
Re: Pointers help
« Reply #1 on: April 04, 2013, 01:34:45 pm »
FAF0 modulo 4000 + 8000
Type that in your windows calculator in scientific mode
Then make the result little endian.
Hopefully that will lead you to your pointer.

danke

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 2043
    • View Profile
Re: Pointers help
« Reply #2 on: April 04, 2013, 02:18:36 pm »
I'm not really certain what Pikachumanson is talking about at all...

If you follow the post, the text found at [0E][FA][F0] would have the pointer of [F0][FA][0E][08]. Then again, that tutorial was for Pokemon Fire Red, so if you're working on another game, I'm not sure how much it would apply.

Revenant

  • Full Member
  • ***
  • Posts: 203
    • View Profile
Re: Pointers help
« Reply #3 on: April 04, 2013, 08:08:16 pm »
I'm not really certain what Pikachumanson is talking about at all...

NES pointers (a swing and a miss...)

Pikachumanson

  • Hero Member
  • *****
  • Posts: 607
    • View Profile
Re: Pointers help
« Reply #4 on: April 05, 2013, 12:08:13 am »
Actually I had tg-16 and sms pointers in mind when I wrote that down.

mikey3

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Pointers help
« Reply #5 on: April 05, 2013, 09:47:32 pm »
Oh, sorry. The game is for DS.

Normmatt

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: Pointers help
« Reply #6 on: April 06, 2013, 12:32:31 am »
if its for DS the arm9 binary is loaded into ram at 02000000 so you need to change the last byte of the pointer to 02

henke37

  • Hero Member
  • *****
  • Posts: 643
    • View Profile
Re: Pointers help
« Reply #7 on: April 06, 2013, 09:47:20 am »
Except that the game is free to choose where to load the code and you need to actually look at the file header to know where the game loads the main executables. And on top of that there is the issue of the overlays, code loaded dynamically at runtime.