mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Add a void address instruction.
This commit is contained in:
parent
8d69c5c898
commit
bce3935ea6
3 changed files with 7 additions and 0 deletions
|
@ -200,6 +200,7 @@ typedef enum {
|
|||
OP_STOREB_I,
|
||||
OP_STOREB_P,
|
||||
|
||||
OP_ADDRESS_VOID,
|
||||
OP_ADDRESS_F,
|
||||
OP_ADDRESS_V,
|
||||
OP_ADDRESS_S,
|
||||
|
|
|
@ -627,6 +627,7 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
|
|||
ed = PROG_TO_EDICT (pr, OPA.entity_var);
|
||||
OPC.integer_var = &ed->v[OPB.integer_var] - pr->pr_globals;
|
||||
break;
|
||||
case OP_ADDRESS_VOID:
|
||||
case OP_ADDRESS_F:
|
||||
case OP_ADDRESS_V:
|
||||
case OP_ADDRESS_Q:
|
||||
|
|
|
@ -397,6 +397,11 @@ VISIBLE opcode_t pr_opcodes[] = {
|
|||
"%Ga.%Gb, %gc",
|
||||
},
|
||||
|
||||
{"&", "address", OP_ADDRESS_VOID, false,
|
||||
ev_void, ev_invalid, ev_pointer,
|
||||
PROG_VERSION,
|
||||
"%Ga, %gc",
|
||||
},
|
||||
{"&", "address.f", OP_ADDRESS_F, false,
|
||||
ev_float, ev_invalid, ev_pointer,
|
||||
PROG_VERSION,
|
||||
|
|
Loading…
Reference in a new issue