Difference between revisions of "0A8D"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{This|For CLEO for GTA III and Vice City prior to v2.0.0.0, use opcode 05E0.}} {{OpCode | games = {{Icon|t}} (with CLEO) | description = Reads a value from the game...")
 
 
Line 4: Line 4:
 
| description = Reads a value from the game memory
 
| description = Reads a value from the game memory
 
| syntax1    = 0A8D: [''var''] = read_memory [''int1''] size [''int2''] virtual_protect [''int3'']
 
| syntax1    = 0A8D: [''var''] = read_memory [''int1''] size [''int2''] virtual_protect [''int3'']
| p1t        = [''var'']
+
| p1t        = [''int1'']
| p1d         = Variable to store the result
+
| p1d        = [[:Category:Memory Addresses|Memory address]] (generally a hexadecimal value, which is indicated by the leading characters <code>0x</code>)
| p2t        = [''int1'']
+
| p2t         = [''int2'']
| p2d         = [[:Category:Memory Addresses|Memory address]] (generally a hexadecimal value, which is indicated by the leading characters <code>0x</code>)
+
| p2d         = Number of bytes to read: 1, 2 or 4 bytes
| p3t         = [''int2'']
+
| p3t         = [''int3'']
| p3d         = Number of bytes to read: 1, 2 or 4 bytes
+
| p3d         = 0 = if the address is rewritable, 1 = if the address is read-only
| p4t         = [''int3'']
+
| p4t        = [''var'']
| p4d         = 0 = if the address is rewritable, 1 = if the address is read-only
+
| p4d        = Variable to store the result
 
}}
 
}}
  

Latest revision as of 00:56, 20 November 2016

For CLEO for GTA III and Vice City prior to v2.0.0.0, use opcode 05E0.

GTA III Vice City San Andreas (with CLEO)


Description
Reads a value from the game memory
Syntax
0A8D: [var] = read_memory [int1] size [int2] virtual_protect [int3]
Parameter
[int1]
Memory address (generally a hexadecimal value, which is indicated by the leading characters 0x)
[int2]
Number of bytes to read: 1, 2 or 4 bytes
[int3]
0 = if the address is rewritable, 1 = if the address is read-only
[var]
Variable to store the result

This opcode reads 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, read, memory, address

See also

  • GTA III Vice City San Andreas 0A8C, writes a value to game memory