From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Progs.dat (QuakeC)" |
|---|
| claim | "Version 6 QuakeC has 66 opcodes, 0 OP_DONE to 65 OP_BITOR; OP_CALL0-OP_CALL8 (51-59) encode the argument count, OP_IF 49, OP_IFNOT 50, OP_STATE 60, OP_GOTO 61." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Progs.dat (QuakeC)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "OP_*" |
|---|
| underlying_type | "uint16" |
|---|
| values | | 0 | "OP_DONE" |
|---|
| 1 | "OP_MUL_F" |
|---|
| 2 | "OP_MUL_V" |
|---|
| 3 | "OP_MUL_FV" |
|---|
| 4 | "OP_MUL_VF" |
|---|
| 5 | "OP_DIV_F" |
|---|
| 6 | "OP_ADD_F" |
|---|
| 7 | "OP_ADD_V" |
|---|
| 8 | "OP_SUB_F" |
|---|
| 9 | "OP_SUB_V" |
|---|
| 10 | "OP_EQ_F" |
|---|
| 11 | "OP_EQ_V" |
|---|
| 12 | "OP_EQ_S" |
|---|
| 13 | "OP_EQ_E" |
|---|
| 14 | "OP_EQ_FNC" |
|---|
| 15 | "OP_NE_F" |
|---|
| 16 | "OP_NE_V" |
|---|
| 17 | "OP_NE_S" |
|---|
| 18 | "OP_NE_E" |
|---|
| 19 | "OP_NE_FNC" |
|---|
| 20 | "OP_LE" |
|---|
| 21 | "OP_GE" |
|---|
| 22 | "OP_LT" |
|---|
| 23 | "OP_GT" |
|---|
| 24 | "OP_LOAD_F" |
|---|
| 25 | "OP_LOAD_V" |
|---|
| 26 | "OP_LOAD_S" |
|---|
| 27 | "OP_LOAD_ENT" |
|---|
| 28 | "OP_LOAD_FLD" |
|---|
| 29 | "OP_LOAD_FNC" |
|---|
| 30 | "OP_ADDRESS" |
|---|
| 31 | "OP_STORE_F" |
|---|
| 32 | "OP_STORE_V" |
|---|
| 33 | "OP_STORE_S" |
|---|
| 34 | "OP_STORE_ENT" |
|---|
| 35 | "OP_STORE_FLD" |
|---|
| 36 | "OP_STORE_FNC" |
|---|
| 37 | "OP_STOREP_F" |
|---|
| 38 | "OP_STOREP_V" |
|---|
| 39 | "OP_STOREP_S" |
|---|
| 40 | "OP_STOREP_ENT" |
|---|
| 41 | "OP_STOREP_FLD" |
|---|
| 42 | "OP_STOREP_FNC" |
|---|
| 43 | "OP_RETURN" |
|---|
| 44 | "OP_NOT_F" |
|---|
| 45 | "OP_NOT_V" |
|---|
| 46 | "OP_NOT_S" |
|---|
| 47 | "OP_NOT_ENT" |
|---|
| 48 | "OP_NOT_FNC" |
|---|
| 49 | "OP_IF" |
|---|
| 50 | "OP_IFNOT" |
|---|
| 51 | "OP_CALL0" |
|---|
| 52 | "OP_CALL1" |
|---|
| 53 | "OP_CALL2" |
|---|
| 54 | "OP_CALL3" |
|---|
| 55 | "OP_CALL4" |
|---|
| 56 | "OP_CALL5" |
|---|
| 57 | "OP_CALL6" |
|---|
| 58 | "OP_CALL7" |
|---|
| 59 | "OP_CALL8" |
|---|
| 60 | "OP_STATE" |
|---|
| 61 | "OP_GOTO" |
|---|
| 62 | "OP_AND" |
|---|
| 63 | "OP_OR" |
|---|
| 64 | "OP_BITAND" |
|---|
| 65 | "OP_BITOR" |
|---|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/pr_comp.h opcode enum (shared by engine and qcc); pr_exec.c PR_ExecuteProgram (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Maximum opcode in LibreQuake v0.09-beta progs.dat and qwprogs.dat is 65." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "QuakeC opcodes" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:52.836Z" |
|---|
| verifications | |
|---|