Difference between revisions of "List of opcodes"

From GTAMods Wiki
Jump to navigation Jump to search
(creating test list)
 
Line 16: Line 16:
 
|[[0003]] ||1 ||int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||shake camera ||
 
|[[0003]] ||1 ||int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||shake camera ||
 
|-
 
|-
|[[0004]] ||2 ||global, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set global to integer ||
+
|[[0004]] ||2 ||global, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set global to integer ||
 
|-
 
|-
|[[0005]] ||2 ||global, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set global to float ||
+
|[[0005]] ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set global to float ||
 
|-
 
|-
|[[0006]] ||2 ||local, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set local to integer ||
+
|[[0006]] ||2 ||local, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set local to integer ||
 
|-
 
|-
|0007 ||2 ||local, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set local to float ||
+
|0007 ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||set local to float ||
 
|-
 
|-
|0008 ||2 ||global, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add global to integer ||
+
|0008 ||2 ||global, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add global to integer ||
 
|-
 
|-
|0009 ||2 ||global, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add global to float ||
+
|0009 ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add global to float ||
 
|-
 
|-
|000A ||2 ||local, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add local to integer ||
+
|000A ||2 ||local, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add local to integer ||
 
|-
 
|-
|000B ||2 ||local, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add local to float ||
+
|000B ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||add local to float ||
 
|-
 
|-
|000C ||2 ||global, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract global to integer ||
+
|000C ||2 ||global, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract global to integer ||
 
|-
 
|-
|000D ||2 ||global, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract global to float ||
+
|000D ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract global to float ||
 
|-
 
|-
|000E ||2 ||local, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract local to integer ||
+
|000E ||2 ||local, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract local to integer ||
 
|-
 
|-
|000F ||2 ||local, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract local to float ||
+
|000F ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||subtract local to float ||
 
|-
 
|-
|0010 ||2 ||global, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply global to integer ||
+
|0010 ||2 ||global, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply global to integer ||
 
|-
 
|-
|0011 ||2 ||global, float|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply global to float ||
+
|0011 ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply global to float ||
 
|-
 
|-
|0012 ||2 ||local, int|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply local to integer ||not used in GTA III and Vice City
+
|0012 ||2 ||local, int || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply local to integer ||not used in GTA III and Vice City
 +
|-
 +
|0013 ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||multiply local to float ||not used in GTA III and Vice City
 +
|-
 +
|0014 ||2 ||global, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||divide global to integer ||
 +
|-
 +
|0015 ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||divide global to float ||
 +
|-
 +
|0016 ||2 ||local, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||divide local to integer ||not used in GTA III and Vice City
 +
|-
 +
|0017 ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||divide local to float ||not used in GTA III and Vice City
 +
|-
 +
|0018 ||2 ||global, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global greater than integer ||
 +
|-
 +
|0019 ||2 ||local, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local greater than integer ||
 +
|-
 +
|001A ||2 ||integer, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check integer greater than global ||
 +
|-
 +
|001B ||2 ||integer, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check integer greater than local ||
 +
|-
 +
|001C ||2 ||global, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer greater than global integer ||
 +
|-
 +
|001D ||2 ||local, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local integer greater than local integer ||not used in GTA III and Vice City
 +
|-
 +
|001E ||2 ||global, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer greater than local integer ||
 +
|-
 +
|001F ||2 ||local, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local integer greater than global integer ||
 +
|-
 +
|0020 ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global greater than float ||
 +
|-
 +
|0021 ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local greater than float ||
 +
|-
 +
|0022 ||2 ||float, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check gloat greater than global ||
 +
|-
 +
|0023 ||2 ||float, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check float greater than local ||
 +
|-
 +
|0024 ||2 ||global, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global float greater than global float ||
 +
|-
 +
|0025 ||2 ||local, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local float greater than local float ||not used in GTA III and Vice City
 +
|-
 +
|0026 ||2 ||global, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global float greater than local float ||not used in GTA III and Vice City
 +
|-
 +
|0027 ||2 ||local, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local float greater than global float ||
 +
|-
 +
|0028 ||2 ||global, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global greater than or equal to integer ||
 +
|-
 +
|0029 ||2 ||local, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local greater than or equal to integer ||
 +
|-
 +
|002A ||2 ||integer, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check integer greater than or equal to global ||
 +
|-
 +
|002B ||2 ||integer, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check integer greater than or equal to local ||not used in Vice City
 +
|-
 +
|002C ||2 ||global, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer greater than equal to global integer ||not used in GTA III and Vice City
 +
|-
 +
|002D ||2 ||local, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local integer greater than or equal to local integer ||not used in GTA III and Vice City
 +
|-
 +
|002E ||2 ||global, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer greater than or equal to local integer ||not used in GTA III and Vice City
 +
|-
 +
|002F ||2 ||local, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local integer greater than or equal to local integer ||
 +
|-
 +
|0030 ||2 ||global, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global greater than or equal to float ||
 +
|-
 +
|0031 ||2 ||local, float || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local greater than or equal to float ||not used in GTA III and Vice City
 +
|-
 +
|0032 ||2 ||float, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check float greater than or equal to global ||
 +
|-
 +
|0033 ||2 ||float, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check float greater than or equal to local ||not used in GTA III and Vice City
 +
|-
 +
|0034 ||2 ||global, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global float greater than or equal to global float ||not used in GTA III and Vice City
 +
|-
 +
|0035 ||2 ||local, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local float greater than or equal to local float ||not used in GTA III and Vice City
 +
|-
 +
|0036 ||2 ||global, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global float greater than or equal to local float ||not used in GTA III and Vice City
 +
|-
 +
|0037 ||2 ||local, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local float greater than or equal to global float ||not used in GTA III and Vice City
 +
|-
 +
|0038 ||2 ||global, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global equal to integer ||
 +
|-
 +
|0039 ||2 ||local, integer || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local equal to integer ||
 +
|-
 +
|003A ||2 ||global, global || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer equal to global integer ||
 +
|-
 +
|003B ||2 ||local, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check local integer equal to local integer ||not used in GTA III and Vice City
 +
|-
 +
|003C ||2 ||global, local || {{Icon|3}} {{Icon|VC}} {{Icon|SA}} ||check global integer equal to local integer ||not used in GTA III and Vice City
 +
|-
 +
|003D ||0 || || ||unsupported ||
 +
|-
 +
|003E ||0 || || ||unsupported ||
 +
|-
 +
|003F ||0 || || ||unsupported ||
 +
|-
 +
|0040 ||0 || || ||unsupported ||
 +
|-
 +
|0041 ||0 || || ||unsupported ||
 
|}
 
|}
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 08:47, 28 January 2010

This is a list of all opcodes, including nops and unsupported ones, in GTA III, Vice City, and San Andreas.

Opcode P Parameter type Games Brief description Notes
0000 0 nop GTA III Vice City San Andreas no operation special use in CLEO
0001 1 int GTA III Vice City San Andreas wait
0002 1 label GTA III Vice City San Andreas jump
0003 1 int GTA III Vice City San Andreas shake camera
0004 2 global, int GTA III Vice City San Andreas set global to integer
0005 2 global, float GTA III Vice City San Andreas set global to float
0006 2 local, int GTA III Vice City San Andreas set local to integer
0007 2 local, float GTA III Vice City San Andreas set local to float
0008 2 global, int GTA III Vice City San Andreas add global to integer
0009 2 global, float GTA III Vice City San Andreas add global to float
000A 2 local, int GTA III Vice City San Andreas add local to integer
000B 2 local, float GTA III Vice City San Andreas add local to float
000C 2 global, int GTA III Vice City San Andreas subtract global to integer
000D 2 global, float GTA III Vice City San Andreas subtract global to float
000E 2 local, int GTA III Vice City San Andreas subtract local to integer
000F 2 local, float GTA III Vice City San Andreas subtract local to float
0010 2 global, int GTA III Vice City San Andreas multiply global to integer
0011 2 global, float GTA III Vice City San Andreas multiply global to float
0012 2 local, int GTA III Vice City San Andreas multiply local to integer not used in GTA III and Vice City
0013 2 local, float GTA III Vice City San Andreas multiply local to float not used in GTA III and Vice City
0014 2 global, integer GTA III Vice City San Andreas divide global to integer
0015 2 global, float GTA III Vice City San Andreas divide global to float
0016 2 local, integer GTA III Vice City San Andreas divide local to integer not used in GTA III and Vice City
0017 2 local, float GTA III Vice City San Andreas divide local to float not used in GTA III and Vice City
0018 2 global, integer GTA III Vice City San Andreas check global greater than integer
0019 2 local, integer GTA III Vice City San Andreas check local greater than integer
001A 2 integer, global GTA III Vice City San Andreas check integer greater than global
001B 2 integer, local GTA III Vice City San Andreas check integer greater than local
001C 2 global, global GTA III Vice City San Andreas check global integer greater than global integer
001D 2 local, local GTA III Vice City San Andreas check local integer greater than local integer not used in GTA III and Vice City
001E 2 global, local GTA III Vice City San Andreas check global integer greater than local integer
001F 2 local, global GTA III Vice City San Andreas check local integer greater than global integer
0020 2 global, float GTA III Vice City San Andreas check global greater than float
0021 2 local, float GTA III Vice City San Andreas check local greater than float
0022 2 float, global GTA III Vice City San Andreas check gloat greater than global
0023 2 float, local GTA III Vice City San Andreas check float greater than local
0024 2 global, global GTA III Vice City San Andreas check global float greater than global float
0025 2 local, local GTA III Vice City San Andreas check local float greater than local float not used in GTA III and Vice City
0026 2 global, local GTA III Vice City San Andreas check global float greater than local float not used in GTA III and Vice City
0027 2 local, global GTA III Vice City San Andreas check local float greater than global float
0028 2 global, integer GTA III Vice City San Andreas check global greater than or equal to integer
0029 2 local, integer GTA III Vice City San Andreas check local greater than or equal to integer
002A 2 integer, global GTA III Vice City San Andreas check integer greater than or equal to global
002B 2 integer, local GTA III Vice City San Andreas check integer greater than or equal to local not used in Vice City
002C 2 global, global GTA III Vice City San Andreas check global integer greater than equal to global integer not used in GTA III and Vice City
002D 2 local, local GTA III Vice City San Andreas check local integer greater than or equal to local integer not used in GTA III and Vice City
002E 2 global, local GTA III Vice City San Andreas check global integer greater than or equal to local integer not used in GTA III and Vice City
002F 2 local, global GTA III Vice City San Andreas check local integer greater than or equal to local integer
0030 2 global, float GTA III Vice City San Andreas check global greater than or equal to float
0031 2 local, float GTA III Vice City San Andreas check local greater than or equal to float not used in GTA III and Vice City
0032 2 float, global GTA III Vice City San Andreas check float greater than or equal to global
0033 2 float, local GTA III Vice City San Andreas check float greater than or equal to local not used in GTA III and Vice City
0034 2 global, global GTA III Vice City San Andreas check global float greater than or equal to global float not used in GTA III and Vice City
0035 2 local, local GTA III Vice City San Andreas check local float greater than or equal to local float not used in GTA III and Vice City
0036 2 global, local GTA III Vice City San Andreas check global float greater than or equal to local float not used in GTA III and Vice City
0037 2 local, global GTA III Vice City San Andreas check local float greater than or equal to global float not used in GTA III and Vice City
0038 2 global, integer GTA III Vice City San Andreas check global equal to integer
0039 2 local, integer GTA III Vice City San Andreas check local equal to integer
003A 2 global, global GTA III Vice City San Andreas check global integer equal to global integer
003B 2 local, local GTA III Vice City San Andreas check local integer equal to local integer not used in GTA III and Vice City
003C 2 global, local GTA III Vice City San Andreas check global integer equal to local integer not used in GTA III and Vice City
003D 0 unsupported
003E 0 unsupported
003F 0 unsupported
0040 0 unsupported
0041 0 unsupported