Table of Contents
Opcodes of the QuakeC bytecode VM.
Misc
Opcode | Mnemonic |
---|---|
0x00
|
DONE |
0x3C
|
STATE |
0x3D
|
GOTO |
0x1E
|
ADDRESS |
0x2B
|
RETURN |
Arithmetic
Opcode | Mnemonic |
---|---|
0x01
|
MUL_F |
0x02
|
MUL_V |
0x03
|
MUL_FV |
0x04
|
MUL_VF |
0x05
|
DIV_F |
0x06
|
ADD_F |
0x07
|
ADD_V |
0x08
|
SUB_F |
0x09
|
SUB_V |
Comparison
Opcode | Mnemonic |
---|---|
0x0A
|
EQ_F |
0x0B
|
EQ_V |
0x0C
|
EQ_S |
0x0D
|
EQ_E |
0x0E
|
EQ_FNC |
0x0F
|
NE_F |
0x10
|
NE_V |
0x11
|
NE_S |
0x12
|
NE_E |
0x13
|
NE_FNC |
0x14
|
LE |
0x15
|
GE |
0x16
|
LT |
0x17
|
GT |
Loading / Storing
Opcode | Mnemonic |
---|---|
0x18
|
LOAD_F |
0x19
|
LOAD_V |
0x1A
|
LOAD_S |
0x1B
|
LOAD_ENT |
0x1C
|
LOAD_FLD |
=0x1D=r | LOAD_FNC |
0x1F
|
STORE_F |
0x20
|
STORE_V |
0x21
|
STORE_S |
0x22
|
STORE_ENT |
0x23
|
STORE_FLD |
0x24
|
STORE_FNC |
0x25
|
STOREP_F |
0x26
|
STOREP_V |
0x27
|
STOREP_S |
0x28
|
STOREP_ENT |
0x29
|
STOREP_FLD |
0x2A
|
STOREP_FNC |
If, Not
Opcode | Mnemonic |
---|---|
0x2C
|
NOT_F |
0x2D
|
NOT_V |
0x2E
|
NOT_S |
0x2F
|
NOT_ENT |
0x30
|
NOT_FNC |
0x31
|
IF |
0x32
|
IFNOT |
Function Calls
Opcode | Mnemonic |
---|---|
0x33
|
CALL0 |
0x34
|
CALL1 |
0x35
|
CALL2 |
0x36
|
CALL3 |
0x37
|
CALL4 |
0x38
|
CALL5 |
0x39
|
CALL6 |
0x3A
|
CALL7 |
0x3B
|
CALL8 |
Boolean Operations
Opcode | Mnemonic |
---|---|
0x3E
|
AND |
0x3F
|
OR |
0x40
|
BITAND |
0x41
|
BITOR |