0A8C

From GTAMods Wiki
Revision as of 04:34, 6 August 2017 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
For CLEO for GTA III and Vice City prior to v2.0.0.0, use opcode 05DF.

GTA III Vice City San Andreas (with CLEO)


Description
Writes a value to the game memory
Syntax
0A8C: write_memory [int1] size [int2] value [any] virtual_protect [int3]
Parameter
[int1]
Memory address (generally a hexadecimal value, which is indicated by the leading characters 0x)
[int2]
Number of bytes to write
[any]
Value to write (any data type)
[int3]
0 = if the address is rewritable, 1 = if the address is read-only

This CLEO opcode writes the value to the memory location if the number of bytes to write is 1, 2, or 4. For other number of bytes, the opcode converts the value to an unsigned character and fills the memory location with that value (see memset).

Keywords

CLEO, write, memory, address

See also

  • GTA III Vice City San Andreas 0A8D, reads a value from game memory