From d344aea51f3d73acba8df46a22f8e6e8ec09b763 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 8 Dec 2001 21:43:44 +0000 Subject: [PATCH] store.p so pointers can be moved around --- include/QF/pr_comp.h | 1 + libs/gamecode/engine/pr_opcode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/QF/pr_comp.h b/include/QF/pr_comp.h index 96fa5a955..32e4450ea 100644 --- a/include/QF/pr_comp.h +++ b/include/QF/pr_comp.h @@ -241,6 +241,7 @@ typedef enum { OP_LEAI, OP_LOAD_P, + OP_STORE_P, } pr_opcode_e; typedef struct diff --git a/libs/gamecode/engine/pr_opcode.c b/libs/gamecode/engine/pr_opcode.c index af856bf18..cd254daa2 100644 --- a/libs/gamecode/engine/pr_opcode.c +++ b/libs/gamecode/engine/pr_opcode.c @@ -132,6 +132,7 @@ opcode_t pr_opcodes[] = { {"=", "store.fld", OP_STORE_FLD, true, ev_field, ev_field, ev_void, PROG_ID_VERSION}, {"=", "store.fnc", OP_STORE_FNC, true, ev_func, ev_func, ev_void, PROG_ID_VERSION}, {"=", "store.i", OP_STORE_I, true, ev_integer, ev_integer, ev_void, PROG_VERSION}, + {"=", "store.p", OP_STORE_P, true, ev_pointer, ev_pointer, ev_void, PROG_VERSION}, {"=", "storep.f", OP_STOREP_F, true, ev_float, ev_pointer, ev_void, PROG_ID_VERSION}, {"=", "storep.v", OP_STOREP_V, true, ev_vector, ev_pointer, ev_void, PROG_ID_VERSION},