+  RHDN Forum Archive
|-+  Romhacking
| |-+  General Romhacking
| | |-+  Get to the Pointer
Pages: [1]
Author Topic: Get to the Pointer  (Read 535 times)
Fenrir
Guest
« on: August 07, 2007, 08:11:53 pm »

What are pointers, how are they useful, and what do they look like (for lack of a better way to put it)?
Dragonsbrethren
Guest
« Reply #1 on: August 07, 2007, 08:29:23 pm »

Pointer Documents

I found Xcalibur's document the most useful when I was just getting started.
Fenrir
Guest
« Reply #2 on: August 07, 2007, 08:39:49 pm »

Thank you.
DaMarsMan
Guest
« Reply #3 on: August 08, 2007, 09:32:34 pm »

Learn assembly language if you really want to know what pointers are. Everything is pointer. There's pointers to maps, sentences, textblocks. Even pointers to other pointers. All computers use pointers. Think of it like Google maps. Pointers are links to where data is stored. They can be links to blocks of code for that matter as well. Pointer tables to functions are very common with spell use and stuff like that.
creaothceann
Guest
« Reply #4 on: August 09, 2007, 01:32:44 am »

Quote from: Dragonsbrethren on August 07, 2007, 08:29:23 pm
Pointer Documents

I found Xcalibur's document the most useful when I was just getting started.

Unfortunately it contains things that are just plain wrong.

Quote
A pointer is a string of hexidecimal numbers (usually 2 bytes)
that tells the ROM to jump to a different place in the code. It
is sort of like the GoTo command in Visual Basic, except not as
easy as that.

Quote
A pointer does just what its name means: it points to a certain
location in the ROM and reads a string from that point until it
reaches an end byte, telling it to stop reading.

Quote
A header, in case you're wondering,
is the first 200 hex bytes of the ROM.
Dragonsbrethren
Guest
« Reply #5 on: August 10, 2007, 04:56:50 pm »

Indeed, but I was able to change FF2us's text pointers using that document, so it's still useful to a newbie, very easy to understand.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC