Add a void address instruction.

This commit is contained in:
Bill Currie 2011-03-10 19:28:03 +09:00
parent 8d69c5c898
commit bce3935ea6
3 changed files with 7 additions and 0 deletions

View file

@ -200,6 +200,7 @@ typedef enum {
OP_STOREB_I,
OP_STOREB_P,
OP_ADDRESS_VOID,
OP_ADDRESS_F,
OP_ADDRESS_V,
OP_ADDRESS_S,

View file

@ -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:

View file

@ -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,