Difference between revisions of "0A8C"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
Line 1: Line 1:
<code>0A8C=4, %1d%  %2d%  %3d%  %4d%</code><br>
+
{{This|For GTA III's and Vice City's equivalent, use 05DF.}}
'''Description''': writes a value to the game memory.<br>
+
{{Icon|SA}} (with [[CLEO]])
'''Parameter 1''': [[Memory Addresses_(SA)|memory address]](hexadecimal value) <br>
+
<hr />
'''Parameter 2''': number of bytes to write: 1, 2 or 4 bytes <br>
+
'''Description'''
'''Parameter 3''': value to write (any number)<br>
+
: Writes a value to the game memory
'''Parameter 4''': Virtual Protect(0/1)<br>
+
'''Syntax'''
'''Supports''': San Andreas (with [[CLEO]])<br>
+
: 0A8C: write_memory [''int''] size [''int''] value [''any''] virtual_protect [''int'']
 +
'''Parameter'''
 +
: [''int'']
 +
:: [[:Category:Memory Addresses|memory address]] (generally a hexadecimal value, which is indicated by the leading characters <code>0x</code>)
 +
: [''int'']
 +
:: Number of bytes to write: 1, 2 or 4 bytes
 +
: [''any'']
 +
:: Value to write (any datatype)
 +
: [''int'']
 +
:: 0 = if the address is rewritable, 1 = if the address is read-only
  
This opcode writes a value to the game memory.
+
This opcode writes a value to the game memory. Note that this opcode does not exist in the game. It is a feature of [[CLEO]] and you must install it in order to utilize this opcode.
  
+
== Keywords ==
 
+
CLEO, write, memory, address
==Sanny Builder Example==
 
 
 
<source lang="scm">0A8C: write_memory 0xC0BC15 size 1 value 1 virtual_protect 0</source>
 
 
 
==Keywords==
 
CLEO, write memory, memory address
 
  
 
[[Category:CLEO Opcodes]]
 
[[Category:CLEO Opcodes]]

Revision as of 17:20, 30 December 2014

For GTA III's and Vice City's equivalent, use 05DF.

San Andreas (with CLEO)


Description

Writes a value to the game memory

Syntax

0A8C: write_memory [int] size [int] value [any] virtual_protect [int]

Parameter

[int]
memory address (generally a hexadecimal value, which is indicated by the leading characters 0x)
[int]
Number of bytes to write: 1, 2 or 4 bytes
[any]
Value to write (any datatype)
[int]
0 = if the address is rewritable, 1 = if the address is read-only

This opcode writes a value to the game memory. Note that this opcode does not exist in the game. It is a feature of CLEO and you must install it in order to utilize this opcode.

Keywords

CLEO, write, memory, address