Skip to content

Compression

r0ah edited this page Oct 26, 2019 · 2 revisions

Is an advanced code type that applies the Write several times in different places in an ordered manner.

Type the first address is in the B1-B8 and the desired value in C1-C8. To find out how far away the second address is, you can use a hex Calculator to subtract these two. Place that offset into the E1-E8.

If you would like to have the value increased each time the code is applied, use F1-F8 to increase it.

Format

Definition

  • 4: Code-Type Identifier
  • X: Bit
    • 0 - 8bit
    • 1 - 16bit
    • 2 - 32bit
  • A3-A4: Related Lines
    • 01 (Not changeable)
  • B1-B8: Valid Memory Address
  • C1-C8: Value
  • D1-D4: Number of Compression
  • E1-E8: Address Gap
  • F1-F8: Value Gap (This increments the C1-C8) (Optional)

Examples

Increment the Valid Memory Address

This example will increment the valid memory address, with the value remaining static.

_V0 Max All Items
$4001 81000000 00000063
$000A 00000004 00000000

Compress the valid memory address 0x81000000 with the address gap of 0x04. Number of compression is 0x0A.

The code above is equivalent to:

$0000 81000000 00000063 #CODE 1
$0000 81000004 00000063 #CODE 2
$0000 81000008 00000063 #CODE 3
$0000 8100000C 00000063 #CODE 4
$0000 81000010 00000063 #CODE 5
$0000 81000014 00000063 #CODE 6
$0000 81000018 00000063 #CODE 7
$0000 8100001C 00000063 #CODE 8
$0000 81000020 00000063 #CODE 9
$0000 81000024 00000063 #CODE 10

Increment the Valid Memory Address + Value

This example will increment the valid memory address and the value.

_V0 Have All Items
$4001 81000000 00000063
$000A 00000004 00000001

Compress the valid memory address 0x81000000 with the address gap of 0x04. Compress the value 0x63 with the value gap of 0x01. Number of compression is 0x0A.

The code above is equivalent to:

$0000 81000000 00000063 #CODE 1
$0000 81000004 00000064 #CODE 2
$0000 81000008 00000065 #CODE 3
$0000 8100000C 00000066 #CODE 4
$0000 81000010 00000067 #CODE 5
$0000 81000014 00000068 #CODE 6
$0000 81000018 00000069 #CODE 7
$0000 8100001C 0000006A #CODE 8
$0000 81000020 0000006B #CODE 9
$0000 81000024 0000006C #CODE 10
Clone this wiki locally