Skip to content

ARM Write

Yohoki edited this page Feb 4, 2020 · 3 revisions

Write ARM instructions. ARM Write can also be used to store the original value of what is being overwritten, and restored when the code is deactivated.

Note: The ARM architecture uses the Little-endian storage format.

Format

Definition

  • A: Code-Type Identifier (Not to be confused with A1-A8)
  • X: Bit
    • 1 - 16bit
    • 2 - 32bit
  • A1-A8: Valid Memory Address
  • B1-B8: Value (in ARM)

Examples

_V0 EXTRA MAX
$A100 8114C8A2 0000BF00

Write 0x00BF to 0x8114C8A2 (16bit), default is off.

0x00BF means NOP in ARM (Thumb-2 HEX).

_V1 Branch Test
$A200 81132EA8 EA01D709

Write 0x75F012BE to 0x81132EA8 (32bit), default is on.

0x09D701EA means b #0x75C24 in ARM (ARM GBD/LLBD).

_V0 Walk Thru Walls
$A000 810A12A6 00000001

Writes 0x01 to address 0x810A12A6, Default is 0x00.

When the code is turned off, it is restored to the original value of 0x00.

Clone this wiki locally