List of opcodes (GTAMA)
Revision as of 22:43, 16 August 2011 by Spaceeinstein (talk | contribs) (testing layout for further use)
This is a list of all opcodes, including nops and unsupported ones, in GTAMA syntax for GTA III, Vice City, and San Andreas. The list is based on the opcode definition list by CyQ.
Opcode | Games | P | Syntax | Notes |
---|---|---|---|---|
0000 | 0 | nop | no operation | |
0001 | 1 | wait [int] | ||
0002 | 1 | jump @[label] | ||
0003 | 1 | shake_cam [int] | ||
0004 | 2 | setgi [global var], [int] | ||
0005 | 2 | setgf [global var], [flt] | ||
0006 | 2 | setli [local var], [int] | ||
0007 | 2 | setlf [local var], [flt] | ||
0008 | 2 | addgi [global var], [int] | ||
0009 | 2 | addgf [global var], [flt] | ||
000A | 2 | addli [local var], [int] | ||
000B | 2 | addlf [local var], [flt] | ||
000C | 2 | subgi [global var], [int] | ||
000D | 2 | subgf [global var], [flt] | ||
000E | 2 | subli [local var], [int] | ||
000F | 2 | sublf [local var], [flt] | ||
0010 | 2 | mulgi [global var], [int] | ||
0011 | 2 | mulgf [global var], [flt] | ||
0012 | 2 | mulli [local var], [int] | ||
0013 | 2 | mullf [local var], [flt] | ||
0014 | 2 | divgi [global var], [int] | ||
0015 | 2 | divgf [global var], [flt] | ||
0016 | 2 | divli [local var], [int] | ||
0017 | 2 | divlf [local var], [flt] | ||
0018 | 2 | gtgi [global var], [int] | ||
0019 | 2 | gtli [local var], [int] | ||
001A | 2 | gtig [int], [global var] | ||
001B | 2 | gtil [int], [local var] | ||
001C | 2 | gtgg [global var int], [global var int] | ||
001D | 2 | gtll [local var int], [local var int] | ||
001E | 2 | gtgl [global var int], [local var int] | ||
001F | 2 | gtlg [local var int], [global var int] | ||
0020 | 2 | gtgf [global var], [flt] | ||
0021 | 2 | gtlf [local var], [flt] | ||
0022 | 2 | gtfg [flt], [global var] | ||
0023 | 2 | gtfl [float], [local var] | ||
0024 | 2 | gtggf [global var flt], [global var flt] | ||
0025 | 2 | gtllf [local var flt], [local var flt] | ||
0026 | 2 | gtglf [global var flt], [local var flt] | ||
0027 | 2 | gtlgf [float], [global var] | ||
0028 | 2 | gtegi [global var], [int] | ||
0029 | 2 | gteli [local var], [int] | ||
002A | 2 | gteig [int], [global var] | ||
002B | 2 | gteil [int], [local var] | ||
002C | 2 | gtegg [global var int], [global var int] | ||
002D | 2 | gtell [local var int], [local var int] | ||
002E | 2 | gtegl [global var int], [local var int] | ||
002F | 2 | gtelg [local var int], [global var int] | ||
0030 | 2 | gtegf [global var], [float] | ||
0031 | 2 | gtelf [local var], [float] | ||
0032 | 2 | gtefg [float], [global var] | ||
0033 | 2 | gtefl [float], [local var] | ||
0034 | 2 | gteggf [global var flt], [global var flt] | ||
0035 | 2 | gtellf [local var flt], [local var flt] | ||
0036 | 2 | gteglf [global var flt], [local var flt] | ||
0037 | 2 | gtelgf [local var flt], [global var flt] | ||
0038 | 2 | egi [global var], [int] | ||
0039 | 2 | eli [local var], [int] | ||
003A | 2 | egg [global var int], [global var int] | ||
003B | 2 | ell [local var int], [local var int] | ||
003C | 2 | egl [global var int], [local var int] | ||
003D | unsupported | - | ||
003E | unsupported | - | ||
003F | unsupported | - | ||
0040 | unsupported | - | ||
0041 | unsupported | - | ||
0042 | 2 | egf [global var], [float] | ||
0043 | 2 | elf [local var], [float] | ||
0044 | 2 | eggf [global var flt], [global var flt] | ||
0045 | 2 | ellf [local var flt], [local var flt] | ||
0046 | 2 | eglf [global var flt], [local var flt] | ||
0047 | unsupported | - | ||
0048 | unsupported | - | ||
0049 | unsupported | - | ||
004A | unsupported | - | ||
004B | unsupported | - |