Skip to content

Pointer Write

r0ah edited this page Oct 26, 2019 · 2 revisions

Pointer version of the Write code type.

Pointers are advanced codes that write to addresses that move around.

Sometimes developers move blocks of RAM around. To keep track of this movement, a specific address keeps track of that block's starting point. The location of an address within that block is called an Offset and is the distance from the start of the block to the desired location. Often, that location is another pointer, leading to a new movable block. To follow a second, third or more pointers, use the pointer level.

Put the pointer's address into the B1-B8 and the value you would like in the D1-D8.

Select how many pointers you need to follow in the A3-A4 and put each of their offsets into an subsequent C1-C8. You can create up to 5 levels. The first offset is at the top, and the last offset is at the bottom.

Format

Definition

  • 3: Code-Type Identifier
  • X: Bit
    • 0 - 8bit
    • 1 - 16bit
    • 2 - 32bit
  • A3-A4: Pointer Level
  • B1-B8: Valid Memory Address
  • C1-C8: 1st Pointer Offset (You can add more pointer offsets)
  • D1-D8: Value

Examples

Example of a level 1 pointer:

_V0 Max Gold
$3201 81000000 000005ED #POINTER LEVEL 1
$3300 00000000 3B9AC9FF #THE VALUE (32bit)

Pointer Level

It is important to learn more about the pointer pointer level. Refer to this page for details.

Clone this wiki locally