From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Progs.dat (QuakeC)" |
|---|
| claim | "A QuakeC statement is 8 bytes: uint16 opcode and three int16 operands a, b, c that index 4-byte global slots (jump operands are relative statement counts)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Progs.dat (QuakeC)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "dstatement_t" |
|---|
| size | "0x8" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "op" |
|---|
| notes | "OP_* 0-65" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "a" |
|---|
|
| offset | "0x4" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "b" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "c" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/pr_comp.h dstatement_t; pr_exec.c OP_GOTO s += a - 1, OP_IF s += b - 1 (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "All statements of LibreQuake v0.09-beta progs.dat and qwprogs.dat have opcodes <= 65." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "QuakeC statement" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:52.584Z" |
|---|
| verifications | |
|---|