From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:QVM (Quake III)" |
|---|
| claim | "OP_CALL with a negative target is a system call: the engine handler is invoked with number -1 - target and the arguments on the VM stack." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:QVM (Quake III)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "OP_CALL with programCounter < 0" |
|---|
| effect | "vm->systemCall called with syscall number -1 - target" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "case OP_CALL: programCounter < 0 branch stores -1 - programCounter and calls vm->systemCall." |
|---|
| repo | "https://github.com/id-Software/Quake-III-Arena" |
|---|
| commit | "dbe4ddb10315479fc00086f08e25d968b4b43c49" |
|---|
| path | "code/qcommon/vm_interpreted.c" |
|---|
| lines | "494-521" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "QVM system calls" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:38:31.120Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:02:48.537Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read OP_CALL in code/qcommon/vm_interpreted.c at dbe4ddb lines 494-525: programCounter < 0 stores -1 - programCounter into the stack slot and calls vm->systemCall with the stack pointer. This is the interpreter; I did not read the x86 JIT (vm_x86.c)." |
|---|
|
|
|---|