2001-09-28 06:26:31 +00:00
|
|
|
/*
|
|
|
|
#FILENAME#
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2001-09-28 06:26:31 +00:00
|
|
|
#DESCRIPTION#
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2001-09-28 06:26:31 +00:00
|
|
|
Copyright (C) 2001 #AUTHOR#
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2001-09-28 06:26:31 +00:00
|
|
|
Author: #AUTHOR#
|
|
|
|
Date: #DATE#
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
2001-07-14 02:34:16 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
2003-01-15 15:31:36 +00:00
|
|
|
|
2001-07-14 04:12:48 +00:00
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
# include "string.h"
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
# include "strings.h"
|
|
|
|
#endif
|
|
|
|
|
2001-12-12 08:39:47 +00:00
|
|
|
#include "QF/cvar.h"
|
2001-07-14 02:34:16 +00:00
|
|
|
#include "QF/hash.h"
|
|
|
|
#include "QF/pr_comp.h"
|
2001-11-02 22:41:11 +00:00
|
|
|
#include "QF/progs.h"
|
2010-01-13 06:36:54 +00:00
|
|
|
#include "QF/sys.h"
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2018-10-11 04:24:03 +00:00
|
|
|
#include "compat.h"
|
|
|
|
|
2020-02-25 16:20:28 +00:00
|
|
|
static hashtab_t *opcode_table;
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2020-02-25 16:20:28 +00:00
|
|
|
VISIBLE const pr_ushort_t pr_type_size[ev_type_count] = {
|
2004-01-31 08:34:01 +00:00
|
|
|
1, // ev_void
|
|
|
|
1, // ev_string
|
|
|
|
1, // ev_float
|
|
|
|
3, // ev_vector
|
|
|
|
1, // ev_entity
|
|
|
|
1, // ev_field
|
|
|
|
1, // ev_func
|
|
|
|
1, // ev_pointer
|
2004-04-08 00:56:30 +00:00
|
|
|
4, // ev_quat
|
2004-01-31 08:34:01 +00:00
|
|
|
1, // ev_integer
|
2011-04-09 01:07:47 +00:00
|
|
|
1, // ev_uinteger
|
2004-01-31 08:34:01 +00:00
|
|
|
0, // ev_short value in opcode
|
2020-02-14 07:38:37 +00:00
|
|
|
2, // ev_double
|
2020-02-23 14:29:58 +00:00
|
|
|
0, // ev_invalid not a valid/simple type
|
2004-01-31 08:34:01 +00:00
|
|
|
};
|
|
|
|
|
2020-02-25 16:20:28 +00:00
|
|
|
VISIBLE const char * const pr_type_name[ev_type_count] = {
|
2004-01-31 08:34:01 +00:00
|
|
|
"void",
|
|
|
|
"string",
|
|
|
|
"float",
|
|
|
|
"vector",
|
|
|
|
"entity",
|
|
|
|
"field",
|
|
|
|
"function",
|
|
|
|
"pointer",
|
|
|
|
"quaternion",
|
|
|
|
"integer",
|
2011-04-09 01:07:47 +00:00
|
|
|
"uinteger",
|
2004-01-31 08:34:01 +00:00
|
|
|
"short",
|
2020-02-14 09:15:34 +00:00
|
|
|
"double",
|
2011-01-09 10:41:24 +00:00
|
|
|
"invalid",
|
2004-01-31 08:34:01 +00:00
|
|
|
};
|
|
|
|
|
2003-07-30 22:24:16 +00:00
|
|
|
// default format is "%Ga, %Gb, %gc"
|
2004-01-31 08:34:01 +00:00
|
|
|
// V global_string, contents, void
|
|
|
|
// G global_string, contents
|
|
|
|
// g global_string, no contents
|
2003-07-30 22:24:16 +00:00
|
|
|
// s as short
|
|
|
|
// O address + short
|
2007-04-09 06:16:03 +00:00
|
|
|
// P function parameter
|
|
|
|
// F function (must come before any P)
|
2007-09-15 07:47:31 +00:00
|
|
|
// R return value
|
2010-11-19 15:31:34 +00:00
|
|
|
// E entity + field (%Eab)
|
2003-07-30 22:24:16 +00:00
|
|
|
//
|
|
|
|
// a operand a
|
|
|
|
// b operand b
|
|
|
|
// c operand c
|
2007-04-09 06:16:03 +00:00
|
|
|
// x place holder for P (padding)
|
|
|
|
// 0-7 parameter index (for P)
|
2020-02-25 16:20:28 +00:00
|
|
|
VISIBLE const opcode_t pr_opcodes[] = {
|
2011-01-09 10:41:24 +00:00
|
|
|
{"<DONE>", "done", OP_DONE, false, // OP_DONE is actually the same as
|
|
|
|
ev_entity, ev_field, ev_void, // OP_RETURN, the types are bogus
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Va",
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"*", "mul.d", OP_MUL_D, false,
|
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"*", "mul.f", OP_MUL_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.v", OP_MUL_V, false,
|
|
|
|
ev_vector, ev_vector, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.fv", OP_MUL_FV, false,
|
|
|
|
ev_float, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.vf", OP_MUL_VF, false,
|
|
|
|
ev_vector, ev_float, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"*", "mul.dv", OP_MUL_DV, false,
|
|
|
|
ev_double, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.vd", OP_MUL_VD, false,
|
|
|
|
ev_vector, ev_double, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"*", "mul.q", OP_MUL_Q, false,
|
|
|
|
ev_quat, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
|
|
|
{"*", "mul.fq", OP_MUL_FQ, false,
|
|
|
|
ev_float, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
|
|
|
{"*", "mul.qf", OP_MUL_QF, false,
|
|
|
|
ev_quat, ev_float, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"*", "mul.dq", OP_MUL_DQ, false,
|
|
|
|
ev_double, ev_quat, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.qd", OP_MUL_QD, false,
|
|
|
|
ev_quat, ev_double, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2012-04-26 01:29:21 +00:00
|
|
|
{"*", "mul.qv", OP_MUL_QV, false,
|
|
|
|
ev_quat, ev_vector, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2004-04-08 04:57:17 +00:00
|
|
|
{"~", "conj.q", OP_CONJ_Q, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_quat, ev_invalid, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2012-07-19 00:57:03 +00:00
|
|
|
"%Ga, %gc",
|
2004-04-08 04:57:17 +00:00
|
|
|
},
|
|
|
|
|
2003-07-30 22:24:16 +00:00
|
|
|
{"/", "div.f", OP_DIV_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"/", "div.d", OP_DIV_D, false,
|
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2020-02-16 02:04:30 +00:00
|
|
|
{"%", "rem.d", OP_REM_D, false,
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2020-02-16 02:53:56 +00:00
|
|
|
{"%%", "mod.d", OP_MOD_D, false,
|
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"+", "add.d", OP_ADD_D, false,
|
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"+", "add.f", OP_ADD_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"+", "add.v", OP_ADD_V, false,
|
|
|
|
ev_vector, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"+", "add.q", OP_ADD_Q, false,
|
|
|
|
ev_quat, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"+", "add.s", OP_ADD_S, false,
|
|
|
|
ev_string, ev_string, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"-", "sub.d", OP_SUB_D, false,
|
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"-", "sub.f", OP_SUB_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"-", "sub.v", OP_SUB_V, false,
|
|
|
|
ev_vector, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"-", "sub.q", OP_SUB_Q, false,
|
|
|
|
ev_quat, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"==", "eq.d", OP_EQ_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"==", "eq.f", OP_EQ_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"==", "eq.v", OP_EQ_V, false,
|
|
|
|
ev_vector, ev_vector, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"==", "eq.q", OP_EQ_Q, false,
|
|
|
|
ev_quat, ev_quat, ev_integer,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"==", "eq.s", OP_EQ_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"==", "eq.e", OP_EQ_E, false,
|
|
|
|
ev_entity, ev_entity, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{"==", "eq.fn", OP_EQ_FN, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_func, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"!=", "ne.d", OP_NE_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"!=", "ne.f", OP_NE_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"!=", "ne.v", OP_NE_V, false,
|
|
|
|
ev_vector, ev_vector, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"!=", "ne.q", OP_NE_Q, false,
|
|
|
|
ev_quat, ev_quat, ev_integer,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"!=", "ne.s", OP_NE_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"!=", "ne.e", OP_NE_E, false,
|
|
|
|
ev_entity, ev_entity, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{"!=", "ne.fn", OP_NE_FN, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_func, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"<=", "le.d", OP_LE_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"<=", "le.f", OP_LE_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{">=", "ge.d", OP_GE_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{">=", "ge.f", OP_GE_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"<=", "le.s", OP_LE_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">=", "ge.s", OP_GE_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"<", "lt.d", OP_LT_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"<", "lt.f", OP_LT_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{">", "gt.d", OP_GT_D, false,
|
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{">", "gt.f", OP_GT_F, false,
|
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"<", "lt.s", OP_LT_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">", "gt.s", OP_GT_S, false,
|
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
|
|
|
{".", "load.f", OP_LOAD_F, false,
|
|
|
|
ev_entity, ev_field, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",//FIXME %E more flexible?
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{".", "load.d", OP_LOAD_D, false,
|
|
|
|
ev_entity, ev_field, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "load.v", OP_LOAD_V, false,
|
|
|
|
ev_entity, ev_field, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".", "load.q", OP_LOAD_Q, false,
|
|
|
|
ev_entity, ev_field, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "load.s", OP_LOAD_S, false,
|
|
|
|
ev_entity, ev_field, ev_string,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "load.ent", OP_LOAD_ENT, false,
|
|
|
|
ev_entity, ev_field, ev_entity,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "load.fld", OP_LOAD_FLD, false,
|
|
|
|
ev_entity, ev_field, ev_field,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".", "load.fn", OP_LOAD_FN, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_entity, ev_field, ev_func,
|
|
|
|
PROG_ID_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "load.i", OP_LOAD_I, false,
|
|
|
|
ev_entity, ev_field, ev_integer,
|
|
|
|
PROG_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "load.p", OP_LOAD_P, false,
|
|
|
|
ev_entity, ev_field, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2010-11-19 15:31:34 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{".", "loadb.d", OP_LOADB_D, false,
|
|
|
|
ev_pointer, ev_integer, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb), %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "loadb.f", OP_LOADB_F, false,
|
|
|
|
ev_pointer, ev_integer, ev_float,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadb.v", OP_LOADB_V, false,
|
|
|
|
ev_pointer, ev_integer, ev_vector,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".", "loadb.q", OP_LOADB_Q, false,
|
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb), %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "loadb.s", OP_LOADB_S, false,
|
|
|
|
ev_pointer, ev_integer, ev_string,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadb.ent", OP_LOADB_ENT, false,
|
|
|
|
ev_pointer, ev_integer, ev_entity,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadb.fld", OP_LOADB_FLD, false,
|
|
|
|
ev_pointer, ev_integer, ev_field,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".", "loadb.fn", OP_LOADB_FN, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_integer, ev_func,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadb.i", OP_LOADB_I, false,
|
|
|
|
ev_pointer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadb.p", OP_LOADB_P, false,
|
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{".", "loadbi.d", OP_LOADBI_D, false,
|
|
|
|
ev_pointer, ev_short, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb), %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "loadbi.f", OP_LOADBI_F, false,
|
|
|
|
ev_pointer, ev_short, ev_float,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadbi.v", OP_LOADBI_V, false,
|
|
|
|
ev_pointer, ev_short, ev_vector,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".", "loadbi.q", OP_LOADBI_Q, false,
|
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb), %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".", "loadbi.s", OP_LOADBI_S, false,
|
|
|
|
ev_pointer, ev_short, ev_string,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadbi.ent", OP_LOADBI_ENT, false,
|
|
|
|
ev_pointer, ev_short, ev_entity,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadbi.fld", OP_LOADBI_FLD, false,
|
|
|
|
ev_pointer, ev_short, ev_field,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".", "loadbi.fn", OP_LOADBI_FN, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_short, ev_func,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadbi.i", OP_LOADBI_I, false,
|
|
|
|
ev_pointer, ev_short, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".", "loadbi.p", OP_LOADBI_P, false,
|
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"*(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{"&", "address", OP_ADDRESS, false,
|
|
|
|
ev_entity, ev_field, ev_pointer,
|
|
|
|
PROG_ID_VERSION,
|
2013-01-17 07:43:54 +00:00
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2011-03-10 10:28:03 +00:00
|
|
|
{"&", "address", OP_ADDRESS_VOID, false,
|
|
|
|
ev_void, ev_invalid, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"&", "address.d", OP_ADDRESS_D, false,
|
|
|
|
ev_double, ev_invalid, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"&", "address.f", OP_ADDRESS_F, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"&", "address.v", OP_ADDRESS_V, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_vector, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"&", "address.q", OP_ADDRESS_Q, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_quat, ev_invalid, ev_pointer,
|
2004-04-08 00:56:30 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"&", "address.s", OP_ADDRESS_S, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_string, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"&", "address.ent", OP_ADDRESS_ENT, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_entity, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"&", "address.fld", OP_ADDRESS_FLD, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_field, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{"&", "address.fn", OP_ADDRESS_FN, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"&", "address.i", OP_ADDRESS_I, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"&", "address.p", OP_ADDRESS_P, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_pointer, ev_invalid, ev_pointer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"&", "lea", OP_LEA, false,
|
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2020-03-15 01:06:37 +00:00
|
|
|
"(%Ga + %Gb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"&", "leai", OP_LEAI, false,
|
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2020-03-15 01:06:37 +00:00
|
|
|
"(%Ga + %sb), %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2012-11-16 05:45:11 +00:00
|
|
|
{"<CONV>", "conv.if", OP_CONV_IF, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_invalid, ev_float,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2012-11-16 05:45:11 +00:00
|
|
|
{"<CONV>", "conv.fi", OP_CONV_FI, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2020-02-14 07:38:37 +00:00
|
|
|
{"<CONV>", "conv.id", OP_CONV_ID, false,
|
|
|
|
ev_integer, ev_invalid, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"<CONV>", "conv.di", OP_CONV_DI, false,
|
|
|
|
ev_double, ev_invalid, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"<CONV>", "conv.fd", OP_CONV_FD, false,
|
|
|
|
ev_float, ev_invalid, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
|
|
|
{"<CONV>", "conv.df", OP_CONV_DF, false,
|
|
|
|
ev_double, ev_invalid, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"=", "store.d", OP_STORE_D, true,
|
|
|
|
ev_double, ev_double, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"=", "store.f", OP_STORE_F, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_float, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
{"=", "store.v", OP_STORE_V, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_vector, ev_vector, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"=", "store.q", OP_STORE_Q, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_quat, ev_quat, ev_invalid,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"=", "store.s", OP_STORE_S, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_string, ev_string, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
{"=", "store.ent", OP_STORE_ENT, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_entity, ev_entity, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
{"=", "store.fld", OP_STORE_FLD, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_field, ev_field, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{"=", "store.fn", OP_STORE_FN, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_func, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
{"=", "store.i", OP_STORE_I, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_integer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
{"=", "store.p", OP_STORE_P, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_pointer, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{".=", "storep.d", OP_STOREP_D, true,
|
|
|
|
ev_double, ev_pointer, ev_invalid,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, *%Gb",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storep.f", OP_STOREP_F, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storep.v", OP_STOREP_V, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_vector, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".=", "storep.q", OP_STOREP_Q, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_quat, ev_pointer, ev_invalid,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
"%Ga, *%Gb",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storep.s", OP_STOREP_S, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_string, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storep.ent", OP_STOREP_ENT, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_entity, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storep.fld", OP_STOREP_FLD, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_field, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".=", "storep.fn", OP_STOREP_FN, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storep.i", OP_STOREP_I, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storep.p", OP_STOREP_P, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_pointer, ev_pointer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *%Gb",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{".=", "storeb.d", OP_STOREB_D, true,
|
|
|
|
ev_double, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %Gc)",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storeb.f", OP_STOREB_F, true,
|
|
|
|
ev_float, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storeb.v", OP_STOREB_V, true,
|
|
|
|
ev_vector, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".=", "storeb.q", OP_STOREB_Q, true,
|
|
|
|
ev_quat, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %Gc)",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storeb.s", OP_STOREB_S, true,
|
|
|
|
ev_string, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storeb.ent", OP_STOREB_ENT, true,
|
|
|
|
ev_entity, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storeb.fld", OP_STOREB_FLD, true,
|
|
|
|
ev_field, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".=", "storeb.fn", OP_STOREB_FN, true,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storeb.i", OP_STOREB_I, true,
|
|
|
|
ev_integer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storeb.p", OP_STOREB_P, true,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %Gc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{".=", "storebi.d", OP_STOREBI_D, true,
|
|
|
|
ev_double, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %sc)",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storebi.f", OP_STOREBI_F, true,
|
|
|
|
ev_float, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storebi.v", OP_STOREBI_V, true,
|
|
|
|
ev_vector, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{".=", "storebi.q", OP_STOREBI_Q, true,
|
|
|
|
ev_quat, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %sc)",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{".=", "storebi.s", OP_STOREBI_S, true,
|
|
|
|
ev_string, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storebi.ent", OP_STOREBI_ENT, true,
|
|
|
|
ev_entity, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storebi.fld", OP_STOREBI_FLD, true,
|
|
|
|
ev_field, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{".=", "storebi.fn", OP_STOREBI_FN, true,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storebi.i", OP_STOREBI_I, true,
|
|
|
|
ev_integer, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{".=", "storebi.p", OP_STOREBI_P, true,
|
|
|
|
ev_pointer, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
2003-09-04 05:30:55 +00:00
|
|
|
"%Ga, *(%Gb + %sc)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{"<RETURN>", "return", OP_RETURN, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_void, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-09-15 07:47:31 +00:00
|
|
|
"%Ra",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2011-01-12 15:29:56 +00:00
|
|
|
{"<RETURN_V>", "return", OP_RETURN_V, false,
|
|
|
|
ev_invalid, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"",
|
|
|
|
},
|
|
|
|
|
2020-02-14 07:38:37 +00:00
|
|
|
{"!", "not.d", OP_NOT_D, false,
|
|
|
|
ev_double, ev_invalid, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"!", "not.f", OP_NOT_F, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"!", "not.v", OP_NOT_V, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_vector, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-04-08 00:56:30 +00:00
|
|
|
{"!", "not.q", OP_NOT_Q, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_quat, ev_invalid, ev_integer,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"!", "not.s", OP_NOT_S, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_string, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"!", "not.ent", OP_NOT_ENT, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_entity, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2004-02-11 06:52:19 +00:00
|
|
|
{"!", "not.fn", OP_NOT_FN, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"!", "not.p", OP_NOT_P, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_pointer, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{"<IF>", "if", OP_IF, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
|
|
|
{"<IFNOT>", "ifnot", OP_IFNOT, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
|
|
|
{"<IFBE>", "ifbe", OP_IFBE, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
|
|
|
{"<IFB>", "ifb", OP_IFB, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
|
|
|
{"<IFAE>", "ifae", OP_IFAE, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
|
|
|
{"<IFA>", "ifa", OP_IFA, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_short, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga branch %sb (%Ob)",
|
|
|
|
},
|
2001-07-14 02:34:16 +00:00
|
|
|
|
|
|
|
// calls returns REG_RETURN
|
2003-07-30 22:24:16 +00:00
|
|
|
{"<CALL0>", "call0", OP_CALL0, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa ()",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL1>", "call1", OP_CALL1, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL2>", "call2", OP_CALL2, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL3>", "call3", OP_CALL3, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL4>", "call4", OP_CALL4, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x, %P3x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL5>", "call5", OP_CALL5, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x, %P3x, %P4x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL6>", "call6", OP_CALL6, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x, %P3x, %P4x, %P5x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL7>", "call7", OP_CALL7, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x, %P3x, %P4x, %P5x, %P6x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"<CALL8>", "call8", OP_CALL8, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
2007-04-09 06:16:03 +00:00
|
|
|
"%Fa (%P0x, %P1x, %P2x, %P3x, %P4x, %P5x, %P6x, %P7x)",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
2005-06-12 09:54:01 +00:00
|
|
|
{"<RCALL1>", "rcall1", OP_RCALL1, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_func, ev_void, ev_invalid,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL2>", "rcall2", OP_RCALL2, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL3>", "rcall3", OP_RCALL3, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL4>", "rcall4", OP_RCALL4, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x, %P3x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL5>", "rcall5", OP_RCALL5, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x, %P3x, %P4x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL6>", "rcall6", OP_RCALL6, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x, %P3x, %P4x, %P5x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL7>", "rcall7", OP_RCALL7, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x, %P3x, %P4x, %P5x, %P6x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
|
|
|
{"<RCALL8>", "rcall8", OP_RCALL8, false,
|
|
|
|
ev_func, ev_void, ev_void,
|
2007-04-09 06:16:03 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Fa (%P0b, %P1c, %P2x, %P3x, %P4x, %P5x, %P6x, %P7x)",
|
2005-06-12 09:54:01 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
|
|
|
{"<STATE>", "state", OP_STATE, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_func, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, %Gb",
|
|
|
|
},
|
|
|
|
|
2004-02-11 01:43:33 +00:00
|
|
|
{"<STATE>", "state.f", OP_STATE_F, false,
|
|
|
|
ev_float, ev_func, ev_float,
|
2010-01-13 06:30:07 +00:00
|
|
|
PROG_VERSION,
|
2004-02-11 01:43:33 +00:00
|
|
|
"%Ga, %Gb, %Gc",
|
|
|
|
},
|
|
|
|
|
2003-07-30 22:24:16 +00:00
|
|
|
{"<GOTO>", "goto", OP_GOTO, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_short, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"branch %sa (%Oa)",
|
|
|
|
},
|
|
|
|
{"<JUMP>", "jump", OP_JUMP, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_invalid, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<JUMPB>", "jumpb", OP_JUMPB, false,
|
2012-12-05 13:20:55 +00:00
|
|
|
ev_void, ev_integer, ev_invalid,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2011-01-09 10:41:24 +00:00
|
|
|
"%Ga[%Gb]",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
|
2003-08-01 21:20:04 +00:00
|
|
|
{"&&", "and.f", OP_AND, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2012-05-21 23:23:22 +00:00
|
|
|
{"||", "or.f", OP_OR, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<<", "shl.f", OP_SHL_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">>", "shr.f", OP_SHR_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<<", "shl.i", OP_SHL_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">>", "shr.i", OP_SHR_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">>", "shr.u", OP_SHR_U, false,
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_integer, ev_uinteger,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
|
|
|
{"&", "bitand", OP_BITAND, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
{"|", "bitor", OP_BITOR, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
|
|
|
{"+", "add.i", OP_ADD_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"-", "sub.i", OP_SUB_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"*", "mul.i", OP_MUL_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"/", "div.i", OP_DIV_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2020-02-16 02:04:30 +00:00
|
|
|
{"%", "rem.i", OP_REM_I, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2020-02-16 02:53:56 +00:00
|
|
|
{"%%", "mod.i", OP_MOD_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
{"&", "bitand.i", OP_BITAND_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"|", "bitor.i", OP_BITOR_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2020-02-16 02:04:30 +00:00
|
|
|
{"%", "rem.f", OP_REM_F, false,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2020-02-16 02:53:56 +00:00
|
|
|
{"%%", "mod.f", OP_MOD_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2003-07-30 22:24:16 +00:00
|
|
|
{">=", "ge.i", OP_GE_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<=", "le.i", OP_LE_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">", "gt.i", OP_GT_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<", "lt.i", OP_LT_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
|
|
|
{"&&", "and.i", OP_AND_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"||", "or.i", OP_OR_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"!", "not.i", OP_NOT_I, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_invalid, ev_integer,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"==", "eq.i", OP_EQ_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"!=", "ne.i", OP_NE_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2011-04-09 01:07:47 +00:00
|
|
|
{">=", "ge.u", OP_GE_U, false,
|
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<=", "le.u", OP_LE_U, false,
|
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">", "gt.u", OP_GT_U, false,
|
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<", "lt.u", OP_LT_U, false,
|
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
|
|
|
{"^", "bitxor.f", OP_BITXOR_F, false,
|
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"~", "bitnot.f", OP_BITNOT_F, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_float, ev_invalid, ev_float,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-07-30 22:24:16 +00:00
|
|
|
},
|
|
|
|
{"^", "bitxor.i", OP_BITXOR_I, false,
|
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"~", "bitnot.i", OP_BITNOT_I, false,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_integer, ev_invalid, ev_integer,
|
2003-08-01 21:20:04 +00:00
|
|
|
PROG_VERSION,
|
2003-08-05 17:27:47 +00:00
|
|
|
"%Ga, %gc",
|
2003-08-01 21:20:04 +00:00
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
|
|
|
{">=", "ge.p", OP_GE_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<=", "le.p", OP_LE_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{">", "gt.p", OP_GT_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"<", "lt.p", OP_LT_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"==", "eq.p", OP_EQ_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
{"!=", "ne.p", OP_NE_P, false,
|
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2011-03-09 01:28:40 +00:00
|
|
|
{"<MOVE>", "movei", OP_MOVEI, true,
|
2011-01-09 10:41:24 +00:00
|
|
|
ev_void, ev_short, ev_void,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %sb, %gc",
|
|
|
|
},
|
2011-03-09 01:25:20 +00:00
|
|
|
{"<MOVEP>", "movep", OP_MOVEP, true,
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %Gb, %Gc",
|
|
|
|
},
|
2011-03-09 01:29:24 +00:00
|
|
|
{"<MOVEP>", "movepi", OP_MOVEPI, true,
|
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2020-03-13 08:50:57 +00:00
|
|
|
"%Ga, %sb, %Gc",
|
|
|
|
},
|
|
|
|
{"<MEMSET>", "memseti", OP_MEMSETI, true,
|
|
|
|
ev_integer, ev_short, ev_void,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %sb, %gc",
|
2011-03-09 01:29:24 +00:00
|
|
|
},
|
2020-03-13 08:50:57 +00:00
|
|
|
{"<MEMSETP>", "memsetp", OP_MEMSETP, true,
|
2020-03-11 13:48:55 +00:00
|
|
|
ev_integer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %Gb, %Gc",
|
|
|
|
},
|
2020-03-13 08:50:57 +00:00
|
|
|
{"<MEMSETP>", "memsetpi", OP_MEMSETPI, true,
|
2020-03-11 13:48:55 +00:00
|
|
|
ev_integer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2020-03-13 08:50:57 +00:00
|
|
|
"%Ga, %sb, %Gc",
|
2020-03-11 13:48:55 +00:00
|
|
|
},
|
2002-10-16 06:44:41 +00:00
|
|
|
|
2018-10-11 04:24:03 +00:00
|
|
|
{"<PUSH>", "push.s", OP_PUSH_S, false,
|
|
|
|
ev_string, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.f", OP_PUSH_F, false,
|
|
|
|
ev_float, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.v", OP_PUSH_V, false,
|
|
|
|
ev_vector, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.ent", OP_PUSH_ENT, false,
|
|
|
|
ev_entity, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.fld", OP_PUSH_FLD, false,
|
|
|
|
ev_field, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.fn", OP_PUSH_FN, false,
|
|
|
|
ev_func, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.p", OP_PUSH_P, false,
|
|
|
|
ev_pointer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.q", OP_PUSH_Q, false,
|
|
|
|
ev_quat, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "push.i", OP_PUSH_I, false,
|
|
|
|
ev_integer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<PUSH>", "pushb.s", OP_PUSHB_S, false,
|
|
|
|
ev_pointer, ev_integer, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.f", OP_PUSHB_F, false,
|
|
|
|
ev_pointer, ev_integer, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.v", OP_PUSHB_V, false,
|
|
|
|
ev_pointer, ev_integer, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.ent", OP_PUSHB_ENT, false,
|
|
|
|
ev_pointer, ev_integer, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.fld", OP_PUSHB_FLD, false,
|
|
|
|
ev_pointer, ev_integer, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.fn", OP_PUSHB_FN, false,
|
|
|
|
ev_pointer, ev_integer, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.p", OP_PUSHB_P, false,
|
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.q", OP_PUSHB_Q, false,
|
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushb.i", OP_PUSHB_I, false,
|
|
|
|
ev_pointer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<PUSH>", "pushbi.s", OP_PUSHBI_S, false,
|
|
|
|
ev_pointer, ev_short, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.f", OP_PUSHBI_F, false,
|
|
|
|
ev_pointer, ev_short, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.v", OP_PUSHBI_V, false,
|
|
|
|
ev_pointer, ev_short, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.ent", OP_PUSHBI_ENT, false,
|
|
|
|
ev_pointer, ev_short, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.fld", OP_PUSHBI_FLD, false,
|
|
|
|
ev_pointer, ev_short, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.fn", OP_PUSHBI_FN, false,
|
|
|
|
ev_pointer, ev_short, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.p", OP_PUSHBI_P, false,
|
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.q", OP_PUSHBI_Q, false,
|
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<PUSH>", "pushbi.i", OP_PUSHBI_I, false,
|
|
|
|
ev_pointer, ev_short, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<POP>", "pop.s", OP_POP_S, false,
|
|
|
|
ev_string, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.f", OP_POP_F, false,
|
|
|
|
ev_float, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.v", OP_POP_V, false,
|
|
|
|
ev_vector, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.ent", OP_POP_ENT, false,
|
|
|
|
ev_entity, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.fld", OP_POP_FLD, false,
|
|
|
|
ev_field, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.fn", OP_POP_FN, false,
|
|
|
|
ev_func, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.p", OP_POP_P, false,
|
|
|
|
ev_pointer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.q", OP_POP_Q, false,
|
|
|
|
ev_quat, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
{"<POP>", "pop.i", OP_POP_I, false,
|
|
|
|
ev_integer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<POP>", "popb.s", OP_POPB_S, false,
|
|
|
|
ev_pointer, ev_integer, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.f", OP_POPB_F, false,
|
|
|
|
ev_pointer, ev_integer, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.v", OP_POPB_V, false,
|
|
|
|
ev_pointer, ev_integer, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.ent", OP_POPB_ENT, false,
|
|
|
|
ev_pointer, ev_integer, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.fld", OP_POPB_FLD, false,
|
|
|
|
ev_pointer, ev_integer, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.fn", OP_POPB_FN, false,
|
|
|
|
ev_pointer, ev_integer, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.p", OP_POPB_P, false,
|
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.q", OP_POPB_Q, false,
|
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popb.i", OP_POPB_I, false,
|
|
|
|
ev_pointer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
|
|
|
|
|
|
|
{"<POP>", "popbi.s", OP_POPBI_S, false,
|
|
|
|
ev_pointer, ev_short, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.f", OP_POPBI_F, false,
|
|
|
|
ev_pointer, ev_short, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.v", OP_POPBI_V, false,
|
|
|
|
ev_pointer, ev_short, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.ent", OP_POPBI_ENT, false,
|
|
|
|
ev_pointer, ev_short, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.fld", OP_POPBI_FLD, false,
|
|
|
|
ev_pointer, ev_short, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.fn", OP_POPBI_FN, false,
|
|
|
|
ev_pointer, ev_short, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.p", OP_POPBI_P, false,
|
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.q", OP_POPBI_Q, false,
|
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
{"<POP>", "popbi.i", OP_POPBI_I, false,
|
|
|
|
ev_pointer, ev_short, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
|
|
|
|
2002-01-30 21:20:12 +00:00
|
|
|
// end of table
|
2001-07-14 02:34:16 +00:00
|
|
|
{0},
|
|
|
|
};
|
|
|
|
|
2001-09-10 12:56:23 +00:00
|
|
|
|
2007-04-04 07:48:14 +00:00
|
|
|
static uintptr_t
|
2012-07-18 13:34:37 +00:00
|
|
|
opcode_get_hash (const void *op, void *unused)
|
2001-07-14 02:34:16 +00:00
|
|
|
{
|
2001-11-20 18:54:15 +00:00
|
|
|
return ((opcode_t *)op)->opcode;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2012-07-18 13:34:37 +00:00
|
|
|
opcode_compare (const void *_opa, const void *_opb, void *unused)
|
2001-11-20 18:54:15 +00:00
|
|
|
{
|
|
|
|
opcode_t *opa = (opcode_t *)_opa;
|
|
|
|
opcode_t *opb = (opcode_t *)_opb;
|
|
|
|
|
|
|
|
return opa->opcode == opb->opcode;
|
2001-07-14 02:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
opcode_t *
|
2007-04-04 12:30:49 +00:00
|
|
|
PR_Opcode (pr_short_t opcode)
|
2001-07-14 02:34:16 +00:00
|
|
|
{
|
2001-09-10 12:56:23 +00:00
|
|
|
opcode_t op;
|
2001-07-14 02:34:16 +00:00
|
|
|
|
|
|
|
op.opcode = opcode;
|
2001-11-20 18:54:15 +00:00
|
|
|
return Hash_FindElement (opcode_table, &op);
|
2001-07-14 02:34:16 +00:00
|
|
|
}
|
|
|
|
|
2007-03-10 12:00:59 +00:00
|
|
|
VISIBLE void
|
2001-07-14 02:34:16 +00:00
|
|
|
PR_Opcode_Init (void)
|
|
|
|
{
|
2020-02-25 16:20:28 +00:00
|
|
|
const opcode_t *op;
|
2001-07-14 02:34:16 +00:00
|
|
|
|
2020-02-23 06:56:36 +00:00
|
|
|
if (opcode_table) {
|
|
|
|
// already initialized
|
|
|
|
return;
|
|
|
|
}
|
2020-03-25 06:43:16 +00:00
|
|
|
opcode_table = Hash_NewTable (1021, 0, 0, 0, 0);
|
2001-11-20 18:54:15 +00:00
|
|
|
Hash_SetHashCompare (opcode_table, opcode_get_hash, opcode_compare);
|
2001-07-14 02:34:16 +00:00
|
|
|
|
|
|
|
for (op = pr_opcodes; op->name; op++) {
|
2020-02-25 16:20:28 +00:00
|
|
|
Hash_AddElement (opcode_table, (void *) op);
|
2001-07-14 02:34:16 +00:00
|
|
|
}
|
|
|
|
}
|
2001-11-02 22:41:11 +00:00
|
|
|
|
|
|
|
static inline void
|
|
|
|
check_branch (progs_t *pr, dstatement_t *st, opcode_t *op, short offset)
|
|
|
|
{
|
2007-04-06 00:47:41 +00:00
|
|
|
pr_int_t address = st - pr->pr_statements;
|
2012-05-21 23:23:22 +00:00
|
|
|
|
2001-11-13 19:52:03 +00:00
|
|
|
address += offset;
|
2007-04-06 00:47:41 +00:00
|
|
|
if (address < 0 || (pr_uint_t) address >= pr->progs->numstatements)
|
2002-05-18 00:49:16 +00:00
|
|
|
PR_Error (pr, "PR_Check_Opcodes: invalid branch (statement %ld: %s)",
|
2001-11-18 23:40:01 +00:00
|
|
|
(long)(st - pr->pr_statements), op->opname);
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|
|
|
|
|
2011-08-16 03:10:05 +00:00
|
|
|
static int
|
|
|
|
is_vector_parameter_store (progs_t *pr, dstatement_t *st,
|
|
|
|
unsigned short operand)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
if (st->op != OP_STORE_V)
|
|
|
|
return 0;
|
|
|
|
if (operand != st->a)
|
|
|
|
return 0;
|
|
|
|
for (i = 0; i < MAX_PARMS; i++)
|
|
|
|
if (st->b == pr->pr_params[i] - pr->pr_globals)
|
|
|
|
return 1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2010-01-13 06:36:54 +00:00
|
|
|
#define ISDENORM(x) ((x) && !((x) & 0x7f800000))
|
|
|
|
|
2001-11-02 22:41:11 +00:00
|
|
|
static inline void
|
|
|
|
check_global (progs_t *pr, dstatement_t *st, opcode_t *op, etype_t type,
|
2010-11-20 05:12:40 +00:00
|
|
|
unsigned short operand, int check_denorm)
|
2001-11-02 22:41:11 +00:00
|
|
|
{
|
2002-02-11 19:36:36 +00:00
|
|
|
const char *msg;
|
2020-02-22 13:33:44 +00:00
|
|
|
pr_def_t *def;
|
2002-02-11 19:36:36 +00:00
|
|
|
|
2001-12-07 20:07:38 +00:00
|
|
|
switch (type) {
|
|
|
|
case ev_short:
|
|
|
|
break;
|
2011-01-09 10:41:24 +00:00
|
|
|
case ev_invalid:
|
2002-02-11 19:36:36 +00:00
|
|
|
if (operand) {
|
2011-01-09 10:41:24 +00:00
|
|
|
msg = "non-zero global index in invalid operand";
|
2002-02-11 19:36:36 +00:00
|
|
|
goto error;
|
|
|
|
}
|
2001-12-07 20:07:38 +00:00
|
|
|
break;
|
|
|
|
default:
|
2010-01-13 06:19:50 +00:00
|
|
|
if (operand + (unsigned) pr_type_size[type]
|
|
|
|
> pr->progs->numglobals) {
|
2011-08-16 03:10:05 +00:00
|
|
|
if (operand >= pr->progs->numglobals
|
|
|
|
|| !is_vector_parameter_store (pr, st, operand)) {
|
|
|
|
msg = "out of bounds global index";
|
|
|
|
goto error;
|
|
|
|
}
|
2002-02-11 19:36:36 +00:00
|
|
|
}
|
2010-11-20 05:12:40 +00:00
|
|
|
if (type != ev_float || !check_denorm)
|
|
|
|
break;
|
|
|
|
if (!ISDENORM (G_INT (pr, operand))
|
|
|
|
|| G_UINT(pr, operand) == 0x80000000)
|
|
|
|
break;
|
|
|
|
if ((def = PR_GlobalAtOfs (pr, operand))
|
|
|
|
&& (def->type & ~DEF_SAVEGLOBAL) != ev_float) {
|
|
|
|
// FTEqcc uses store.f parameters of most types :/
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (!pr->denorm_found) {
|
2010-01-13 06:36:54 +00:00
|
|
|
pr->denorm_found = 1;
|
2010-11-20 05:12:40 +00:00
|
|
|
if (pr_boundscheck->int_val) {
|
2010-01-13 06:36:54 +00:00
|
|
|
Sys_Printf ("DENORMAL floats detected, these progs might "
|
|
|
|
"not work. Good luck.\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
msg = "DENORMAL float detected. These progs are probably "
|
|
|
|
"using qccx arrays and integers. If just simple arrays "
|
|
|
|
"are being used, then they should work, but if "
|
2021-07-26 04:35:35 +00:00
|
|
|
"internal.qc is used, they most definitely will NOT. To "
|
2010-01-13 06:36:54 +00:00
|
|
|
"allow these progs to be used, set pr_boundscheck to 1.";
|
|
|
|
goto error;
|
|
|
|
}
|
2001-12-07 20:07:38 +00:00
|
|
|
break;
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|
2002-02-11 19:36:36 +00:00
|
|
|
return;
|
|
|
|
error:
|
2004-01-31 04:26:01 +00:00
|
|
|
PR_PrintStatement (pr, st, 0);
|
2002-05-18 00:49:16 +00:00
|
|
|
PR_Error (pr, "PR_Check_Opcodes: %s (statement %ld: %s)", msg,
|
2002-02-11 19:36:36 +00:00
|
|
|
(long)(st - pr->pr_statements), op->opname);
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|
|
|
|
|
2011-05-04 00:31:18 +00:00
|
|
|
static void
|
2010-01-13 06:19:50 +00:00
|
|
|
check_global_size (progs_t *pr, dstatement_t *st, opcode_t *op,
|
|
|
|
unsigned short size, unsigned short operand)
|
|
|
|
{
|
|
|
|
const char *msg;
|
|
|
|
if (operand + size > pr->progs->numglobals) {
|
|
|
|
msg = "out of bounds global index";
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
error:
|
|
|
|
PR_PrintStatement (pr, st, 0);
|
|
|
|
PR_Error (pr, "PR_Check_Opcodes: %s (statement %ld: %s)", msg,
|
|
|
|
(long)(st - pr->pr_statements), op->opname);
|
|
|
|
}
|
|
|
|
|
2003-11-20 07:46:56 +00:00
|
|
|
int
|
2001-11-02 22:41:11 +00:00
|
|
|
PR_Check_Opcodes (progs_t *pr)
|
|
|
|
{
|
|
|
|
opcode_t *op;
|
|
|
|
dstatement_t *st;
|
2003-11-20 07:46:56 +00:00
|
|
|
int state_ok = 0;
|
2018-10-11 04:24:03 +00:00
|
|
|
int pushpop_ok = 0;
|
2007-04-06 00:47:41 +00:00
|
|
|
pr_uint_t i;
|
2003-11-20 07:46:56 +00:00
|
|
|
|
|
|
|
if (pr->globals.time && pr->globals.self && pr->fields.nextthink != -1
|
2018-10-11 04:24:03 +00:00
|
|
|
&& pr->fields.think != -1 && pr->fields.frame != -1) {
|
2003-11-20 07:46:56 +00:00
|
|
|
state_ok = 1;
|
2018-10-11 04:24:03 +00:00
|
|
|
}
|
|
|
|
if (pr->globals.stack) {
|
|
|
|
pushpop_ok = 1;
|
|
|
|
}
|
2003-11-20 07:46:56 +00:00
|
|
|
|
2010-01-13 06:36:54 +00:00
|
|
|
//FIXME need to decide if I really want to always do static bounds checking
|
|
|
|
// the only problem is that it slows progs load a little, but it's the only
|
|
|
|
// way to check for qccx' evil
|
|
|
|
if (0 && !pr_boundscheck->int_val) {
|
2003-11-20 07:46:56 +00:00
|
|
|
for (i = 0, st = pr->pr_statements; i < pr->progs->numstatements;
|
|
|
|
st++, i++) {
|
|
|
|
op = PR_Opcode (st->op);
|
|
|
|
if (!op) {
|
|
|
|
PR_Error (pr, "PR_Check_Opcodes: unknown opcode %d at "
|
|
|
|
"statement %ld", st->op,
|
|
|
|
(long)(st - pr->pr_statements));
|
|
|
|
}
|
2004-02-11 01:43:33 +00:00
|
|
|
if ((st->op == OP_STATE || st->op == OP_STATE_F) && !state_ok) {
|
2003-11-20 07:46:56 +00:00
|
|
|
PR_Error (pr, "PR_Check_Opcodes: %s used with missing fields "
|
|
|
|
"or globals", op->opname);
|
|
|
|
}
|
2018-10-11 04:24:03 +00:00
|
|
|
if ((strequal(op->name, "<PUSH>") || strequal(op->name, "<POP>"))
|
|
|
|
&& !pushpop_ok) {
|
|
|
|
PR_Error (pr, "PR_Check_Opcodes: %s used with missing .stack "
|
|
|
|
"globals", op->opname);
|
|
|
|
}
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|
2003-11-20 07:46:56 +00:00
|
|
|
} else {
|
|
|
|
for (i = 0, st = pr->pr_statements; i < pr->progs->numstatements;
|
|
|
|
st++, i++) {
|
|
|
|
op = PR_Opcode (st->op);
|
|
|
|
if (!op) {
|
|
|
|
PR_Error (pr, "PR_Check_Opcodes: unknown opcode %d at "
|
|
|
|
"statement %ld", st->op,
|
|
|
|
(long)(st - pr->pr_statements));
|
|
|
|
}
|
|
|
|
switch (st->op) {
|
|
|
|
case OP_IF:
|
|
|
|
case OP_IFNOT:
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, op->type_a, st->a, 1);
|
2003-11-20 07:46:56 +00:00
|
|
|
check_branch (pr, st, op, st->b);
|
|
|
|
break;
|
|
|
|
case OP_GOTO:
|
|
|
|
check_branch (pr, st, op, st->a);
|
|
|
|
break;
|
|
|
|
case OP_DONE:
|
|
|
|
case OP_RETURN:
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, ev_integer, st->a, 1);
|
|
|
|
check_global (pr, st, op, ev_void, st->b, 0);
|
|
|
|
check_global (pr, st, op, ev_void, st->c, 0);
|
2003-11-20 07:46:56 +00:00
|
|
|
break;
|
2005-06-12 09:54:01 +00:00
|
|
|
case OP_RCALL1:
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, ev_void, st->c, 1);
|
2005-06-12 09:54:01 +00:00
|
|
|
case OP_RCALL2:
|
|
|
|
case OP_RCALL3:
|
|
|
|
case OP_RCALL4:
|
|
|
|
case OP_RCALL5:
|
|
|
|
case OP_RCALL6:
|
|
|
|
case OP_RCALL7:
|
|
|
|
case OP_RCALL8:
|
|
|
|
if (st->op > OP_RCALL1)
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, ev_integer, st->c, 1);
|
|
|
|
check_global (pr, st, op, ev_integer, st->b, 1);
|
|
|
|
check_global (pr, st, op, ev_func, st->a, 1);
|
2005-06-12 09:54:01 +00:00
|
|
|
break;
|
2003-11-20 07:46:56 +00:00
|
|
|
case OP_STATE:
|
2004-02-11 01:43:33 +00:00
|
|
|
case OP_STATE_F:
|
2003-11-20 07:46:56 +00:00
|
|
|
if (!state_ok) {
|
|
|
|
PR_Error (pr, "PR_Check_Opcodes: %s used with missing "
|
|
|
|
"fields or globals", op->opname);
|
|
|
|
}
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, op->type_a, st->a, 1);
|
|
|
|
check_global (pr, st, op, op->type_b, st->b, 1);
|
|
|
|
check_global (pr, st, op, op->type_c, st->c, 1);
|
2003-11-20 07:46:56 +00:00
|
|
|
break;
|
2011-03-09 01:28:40 +00:00
|
|
|
case OP_MOVEI:
|
2010-01-13 06:19:50 +00:00
|
|
|
check_global_size (pr, st, op, st->b, st->a);
|
|
|
|
check_global_size (pr, st, op, st->b, st->c);
|
|
|
|
break;
|
2020-03-13 08:50:57 +00:00
|
|
|
case OP_MEMSETI:
|
|
|
|
check_global_size (pr, st, op, st->b, st->c);
|
|
|
|
break;
|
2018-10-11 04:24:03 +00:00
|
|
|
case OP_PUSHB_F:
|
|
|
|
case OP_PUSHB_S:
|
|
|
|
case OP_PUSHB_ENT:
|
|
|
|
case OP_PUSHB_FLD:
|
|
|
|
case OP_PUSHB_FN:
|
|
|
|
case OP_PUSHB_I:
|
|
|
|
case OP_PUSHB_P:
|
|
|
|
case OP_PUSHB_V:
|
|
|
|
case OP_PUSHB_Q:
|
|
|
|
case OP_PUSHBI_F:
|
|
|
|
case OP_PUSHBI_S:
|
|
|
|
case OP_PUSHBI_ENT:
|
|
|
|
case OP_PUSHBI_FLD:
|
|
|
|
case OP_PUSHBI_FN:
|
|
|
|
case OP_PUSHBI_I:
|
|
|
|
case OP_PUSHBI_P:
|
|
|
|
case OP_PUSHBI_V:
|
|
|
|
case OP_PUSHBI_Q:
|
|
|
|
// op->type_c is used for selecting the operator during
|
|
|
|
// compilation, but is invalid when running
|
|
|
|
check_global (pr, st, op, op->type_a, st->a, 1);
|
|
|
|
check_global (pr, st, op, op->type_b, st->b, 1);
|
|
|
|
check_global (pr, st, op, ev_invalid, st->c, 1);
|
|
|
|
break;
|
|
|
|
case OP_POP_F:
|
|
|
|
case OP_POP_FLD:
|
|
|
|
case OP_POP_ENT:
|
|
|
|
case OP_POP_S:
|
|
|
|
case OP_POP_FN:
|
|
|
|
case OP_POP_I:
|
|
|
|
case OP_POP_P:
|
|
|
|
case OP_POP_V:
|
|
|
|
case OP_POP_Q:
|
|
|
|
// don't want to check for denormal floats, otherwise
|
|
|
|
// OP_POP_* could use the defualt rule
|
|
|
|
check_global (pr, st, op, op->type_a, st->a, 0);
|
|
|
|
check_global (pr, st, op, ev_invalid, st->b, 1);
|
|
|
|
check_global (pr, st, op, ev_invalid, st->c, 1);
|
|
|
|
break;
|
|
|
|
case OP_POPB_F:
|
|
|
|
case OP_POPB_S:
|
|
|
|
case OP_POPB_ENT:
|
|
|
|
case OP_POPB_FLD:
|
|
|
|
case OP_POPB_FN:
|
|
|
|
case OP_POPB_I:
|
|
|
|
case OP_POPB_P:
|
|
|
|
case OP_POPB_V:
|
|
|
|
case OP_POPB_Q:
|
|
|
|
case OP_POPBI_F:
|
|
|
|
case OP_POPBI_S:
|
|
|
|
case OP_POPBI_ENT:
|
|
|
|
case OP_POPBI_FLD:
|
|
|
|
case OP_POPBI_FN:
|
|
|
|
case OP_POPBI_I:
|
|
|
|
case OP_POPBI_P:
|
|
|
|
case OP_POPBI_V:
|
|
|
|
case OP_POPBI_Q:
|
|
|
|
// op->type_c is used for selecting the operator during
|
|
|
|
// compilation, but is invalid when running
|
|
|
|
check_global (pr, st, op, op->type_a, st->a, 1);
|
|
|
|
check_global (pr, st, op, op->type_b, st->b, 1);
|
|
|
|
check_global (pr, st, op, ev_invalid, st->c, 1);
|
|
|
|
break;
|
2003-11-20 07:46:56 +00:00
|
|
|
default:
|
2010-11-20 05:12:40 +00:00
|
|
|
check_global (pr, st, op, op->type_a, st->a, 1);
|
|
|
|
check_global (pr, st, op, op->type_b, st->b,
|
|
|
|
op->opcode != OP_STORE_F);
|
|
|
|
check_global (pr, st, op, op->type_c, st->c, 0);
|
2003-11-20 07:46:56 +00:00
|
|
|
break;
|
|
|
|
}
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|
|
|
|
}
|
2003-11-20 07:46:56 +00:00
|
|
|
return 1;
|
2001-11-02 22:41:11 +00:00
|
|
|
}
|