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/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
|
|
|
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[] = {
|
2022-01-02 10:02:48 +00:00
|
|
|
// OP_DONE is actually the same as OP_RETURN, the types are bogus
|
|
|
|
[OP_DONE] = {"<DONE>", "done",
|
|
|
|
ev_entity, ev_field, ev_void,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Va",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_D] = {"*", "mul.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_F] = {"*", "mul.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_V] = {"*", "mul.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_vector, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_FV] = {"*", "mul.fv",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_VF] = {"*", "mul.vf",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_float, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_DV] = {"*", "mul.dv",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_VD] = {"*", "mul.vd",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_vector, ev_double, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_Q] = {"*", "mul.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_FQ] = {"*", "mul.fq",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_float, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_QF] = {"*", "mul.qf",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_float, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_DQ] = {"*", "mul.dq",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_quat, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_QD] = {"*", "mul.qd",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_quat, ev_double, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_QV] = {"*", "mul.qv",
|
2012-04-26 01:29:21 +00:00
|
|
|
ev_quat, ev_vector, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONJ_Q] = {"~", "conj.q",
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_DIV_F] = {"/", "div.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_DIV_D] = {"/", "div.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_REM_D] = {"%", "rem.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOD_D] = {"%%", "mod.d",
|
2020-02-16 02:53:56 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_D] = {"+", "add.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_F] = {"+", "add.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_V] = {"+", "add.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_Q] = {"+", "add.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_quat, ev_quat,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_S] = {"+", "add.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SUB_D] = {"-", "sub.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SUB_F] = {"-", "sub.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SUB_V] = {"-", "sub.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_vector, ev_vector,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SUB_Q] = {"-", "sub.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
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
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_D] = {"==", "eq.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_F] = {"==", "eq.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_V] = {"==", "eq.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_vector, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_Q] = {"==", "eq.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_quat, ev_integer,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_S] = {"==", "eq.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_E] = {"==", "eq.e",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_entity, ev_entity, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_FN] = {"==", "eq.fn",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_func, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_D] = {"!=", "ne.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_F] = {"!=", "ne.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_V] = {"!=", "ne.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_vector, ev_vector, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_Q] = {"!=", "ne.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_quat, ev_integer,
|
2012-04-26 01:26:43 +00:00
|
|
|
PROG_VERSION,
|
2004-04-08 00:56:30 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_S] = {"!=", "ne.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_E] = {"!=", "ne.e",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_entity, ev_entity, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_FN] = {"!=", "ne.fn",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_func, ev_func, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_D] = {"<=", "le.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_F] = {"<=", "le.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_D] = {">=", "ge.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_F] = {">=", "ge.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_S] = {"<=", "le.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_S] = {">=", "ge.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_D] = {"<", "lt.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_F] = {"<", "lt.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_D] = {">", "gt.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_F] = {">", "gt.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_S] = {"<", "lt.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_S] = {">", "gt.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_string, ev_string, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_F] = {".", "load.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_D] = {".", "load.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_entity, ev_field, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga.%Gb(%Ec), %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_V] = {".", "load.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_Q] = {".", "load.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_S] = {".", "load.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_ENT] = {".", "load.ent",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_FLD] = {".", "load.fld",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_FN] = {".", "load.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_I] = {".", "load.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOAD_P] = {".", "load.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_D] = {".", "loadb.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_pointer, ev_integer, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb), %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_F] = {".", "loadb.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_V] = {".", "loadb.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_Q] = {".", "loadb.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb), %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_S] = {".", "loadb.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_ENT] = {".", "loadb.ent",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_FLD] = {".", "loadb.fld",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_FN] = {".", "loadb.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_I] = {".", "loadb.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADB_P] = {".", "loadb.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_D] = {".", "loadbi.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_pointer, ev_short, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb), %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_F] = {".", "loadbi.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_V] = {".", "loadbi.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_Q] = {".", "loadbi.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb), %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_S] = {".", "loadbi.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_ENT] = {".", "loadbi.ent",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_FLD] = {".", "loadbi.fld",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_FN] = {".", "loadbi.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_I] = {".", "loadbi.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LOADBI_P] = {".", "loadbi.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS] = {"&", "address",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_VOID] = {"&", "address",
|
2011-03-10 10:28:03 +00:00
|
|
|
ev_void, ev_invalid, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_D] = {"&", "address.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_invalid, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_F] = {"&", "address.f",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_V] = {"&", "address.v",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_Q] = {"&", "address.q",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_S] = {"&", "address.s",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_ENT] = {"&", "address.ent",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_FLD] = {"&", "address.fld",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_FN] = {"&", "address.fn",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_I] = {"&", "address.i",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADDRESS_P] = {"&", "address.p",
|
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",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LEA] = {"&", "lea",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LEAI] = {"&", "leai",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_IF] = {"<CONV>", "conv.if",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_FI] = {"<CONV>", "conv.fi",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_ID] = {"<CONV>", "conv.id",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_integer, ev_invalid, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_DI] = {"<CONV>", "conv.di",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_invalid, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_FD] = {"<CONV>", "conv.fd",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_float, ev_invalid, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CONV_DF] = {"<CONV>", "conv.df",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_invalid, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_D] = {"=", "store.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_double, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gb",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_F] = {"=", "store.f",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_V] = {"=", "store.v",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_Q] = {"=", "store.q",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_S] = {"=", "store.s",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_ENT] = {"=", "store.ent",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_FLD] = {"=", "store.fld",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_FN] = {"=", "store.fn",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_I] = {"=", "store.i",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STORE_P] = {"=", "store.p",
|
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",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_D] = {".=", "storep.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_pointer, ev_invalid,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
"%Ga, *%Gb",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_F] = {".=", "storep.f",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_V] = {".=", "storep.v",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_Q] = {".=", "storep.q",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_S] = {".=", "storep.s",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_ENT] = {".=", "storep.ent",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_FLD] = {".=", "storep.fld",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_FN] = {".=", "storep.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_I] = {".=", "storep.i",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREP_P] = {".=", "storep.p",
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_D] = {".=", "storeb.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %Gc)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_F] = {".=", "storeb.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_V] = {".=", "storeb.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_Q] = {".=", "storeb.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %Gc)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_S] = {".=", "storeb.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_ENT] = {".=", "storeb.ent",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_FLD] = {".=", "storeb.fld",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_FN] = {".=", "storeb.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_I] = {".=", "storeb.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREB_P] = {".=", "storeb.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_D] = {".=", "storebi.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %sc)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_F] = {".=", "storebi.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_V] = {".=", "storebi.v",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_Q] = {".=", "storebi.q",
|
2004-04-08 00:56:30 +00:00
|
|
|
ev_quat, ev_pointer, ev_short,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, *(%Gb + %sc)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_S] = {".=", "storebi.s",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_ENT] = {".=", "storebi.ent",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_FLD] = {".=", "storebi.fld",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_FN] = {".=", "storebi.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_I] = {".=", "storebi.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STOREBI_P] = {".=", "storebi.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RETURN] = {"<RETURN>", "return",
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RETURN_V] = {"<RETURN_V>", "return",
|
2011-01-12 15:29:56 +00:00
|
|
|
ev_invalid, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_D] = {"!", "not.d",
|
2020-02-14 07:38:37 +00:00
|
|
|
ev_double, ev_invalid, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_F] = {"!", "not.f",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_V] = {"!", "not.v",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_Q] = {"!", "not.q",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_S] = {"!", "not.s",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_ENT] = {"!", "not.ent",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_FN] = {"!", "not.fn",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_P] = {"!", "not.p",
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IF] = {"<IF>", "if",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IFNOT] = {"<IFNOT>", "ifnot",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IFBE] = {"<IFBE>", "ifbe",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IFB] = {"<IFB>", "ifb",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IFAE] = {"<IFAE>", "ifae",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_IFA] = {"<IFA>", "ifa",
|
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
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL0] = {"<CALL0>", "call0",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL1] = {"<CALL1>", "call1",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL2] = {"<CALL2>", "call2",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL3] = {"<CALL3>", "call3",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL4] = {"<CALL4>", "call4",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL5] = {"<CALL5>", "call5",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL6] = {"<CALL6>", "call6",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL7] = {"<CALL7>", "call7",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_CALL8] = {"<CALL8>", "call8",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL0] = {"<RCALL0>", 0,
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_invalid, ev_invalid, ev_invalid,
|
|
|
|
~0, // not a valid instruction
|
|
|
|
0,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL1] = {"<RCALL1>", "rcall1",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL2] = {"<RCALL2>", "rcall2",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL3] = {"<RCALL3>", "rcall3",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL4] = {"<RCALL4>", "rcall4",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL5] = {"<RCALL5>", "rcall5",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL6] = {"<RCALL6>", "rcall6",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL7] = {"<RCALL7>", "rcall7",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_RCALL8] = {"<RCALL8>", "rcall8",
|
2005-06-12 09:54:01 +00:00
|
|
|
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
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STATE] = {"<STATE>", "state",
|
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",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_STATE_F] = {"<STATE>", "state.f",
|
2004-02-11 01:43:33 +00:00
|
|
|
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",
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GOTO] = {"<GOTO>", "goto",
|
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)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_JUMP] = {"<JUMP>", "jump",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_JUMPB] = {"<JUMPB>", "jumpb",
|
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
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_AND] = {"&&", "and.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_OR] = {"||", "or.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_integer,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SHL_F] = {"<<", "shl.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SHR_F] = {">>", "shr.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SHL_I] = {"<<", "shl.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SHR_I] = {">>", "shr.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SHR_U] = {">>", "shr.u",
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_integer, ev_uinteger,
|
2003-07-30 22:24:16 +00:00
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITAND] = {"&", "bitand",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITOR] = {"|", "bitor",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_ID_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_ADD_I] = {"+", "add.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_SUB_I] = {"-", "sub.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MUL_I] = {"*", "mul.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_DIV_I] = {"/", "div.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_REM_I] = {"%", "rem.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOD_I] = {"%%", "mod.i",
|
2020-02-16 02:53:56 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITAND_I] = {"&", "bitand.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITOR_I] = {"|", "bitor.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_REM_F] = {"%", "rem.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOD_F] = {"%%", "mod.f",
|
2020-02-16 02:53:56 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_I] = {">=", "ge.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_I] = {"<=", "le.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_I] = {">", "gt.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_I] = {"<", "lt.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_AND_I] = {"&&", "and.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_OR_I] = {"||", "or.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NOT_I] = {"!", "not.i",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_I] = {"==", "eq.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_I] = {"!=", "ne.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_U] = {">=", "ge.u",
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_U] = {"<=", "le.u",
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_U] = {">", "gt.u",
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_U] = {"<", "lt.u",
|
2011-04-09 01:07:47 +00:00
|
|
|
ev_uinteger, ev_uinteger, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2003-07-30 22:24:16 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITXOR_F] = {"^", "bitxor.f",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_float, ev_float, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITNOT_F] = {"~", "bitnot.f",
|
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
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITXOR_I] = {"^", "bitxor.i",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_integer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_BITNOT_I] = {"~", "bitnot.i",
|
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
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GE_P] = {">=", "ge.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LE_P] = {"<=", "le.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_GT_P] = {">", "gt.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_LT_P] = {"<", "lt.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_EQ_P] = {"==", "eq.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_NE_P] = {"!=", "ne.p",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_pointer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
},
|
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOVEI] = {"<MOVE>", "movei",
|
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",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOVEP] = {"<MOVEP>", "movep",
|
2003-07-30 22:24:16 +00:00
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %Gb, %Gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MOVEPI] = {"<MOVEP>", "movepi",
|
2011-03-09 01:29:24 +00:00
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
2020-03-13 08:50:57 +00:00
|
|
|
"%Ga, %sb, %Gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MEMSETI] = {"<MEMSET>", "memseti",
|
2020-03-13 08:50:57 +00:00
|
|
|
ev_integer, ev_short, ev_void,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %sb, %gc",
|
2011-03-09 01:29:24 +00:00
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MEMSETP] = {"<MEMSETP>", "memsetp",
|
2020-03-11 13:48:55 +00:00
|
|
|
ev_integer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga, %Gb, %Gc",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_MEMSETPI] = {"<MEMSETP>", "memsetpi",
|
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
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_S] = {"<PUSH>", "push.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_string, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_F] = {"<PUSH>", "push.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_float, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_V] = {"<PUSH>", "push.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_vector, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_ENT] = {"<PUSH>", "push.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_entity, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_FLD] = {"<PUSH>", "push.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_field, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_FN] = {"<PUSH>", "push.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_P] = {"<PUSH>", "push.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_Q] = {"<PUSH>", "push.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_quat, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_I] = {"<PUSH>", "push.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_integer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSH_D] = {"<PUSH>", "push.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_double, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%Ga",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_S] = {"<PUSH>", "pushb.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_F] = {"<PUSH>", "pushb.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_V] = {"<PUSH>", "pushb.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_ENT] = {"<PUSH>", "pushb.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_FLD] = {"<PUSH>", "pushb.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_FN] = {"<PUSH>", "pushb.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_P] = {"<PUSH>", "pushb.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_Q] = {"<PUSH>", "pushb.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_I] = {"<PUSH>", "pushb.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHB_D] = {"<PUSH>", "pushb.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_pointer, ev_integer, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_S] = {"<PUSH>", "pushbi.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_F] = {"<PUSH>", "pushbi.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_V] = {"<PUSH>", "pushbi.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_ENT] = {"<PUSH>", "pushbi.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_FLD] = {"<PUSH>", "pushbi.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_FN] = {"<PUSH>", "pushbi.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_P] = {"<PUSH>", "pushbi.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_Q] = {"<PUSH>", "pushbi.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_I] = {"<PUSH>", "pushbi.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_PUSHBI_D] = {"<PUSH>", "pushbi.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_pointer, ev_short, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_S] = {"<POP>", "pop.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_string, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_F] = {"<POP>", "pop.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_float, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_V] = {"<POP>", "pop.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_vector, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_ENT] = {"<POP>", "pop.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_entity, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_FLD] = {"<POP>", "pop.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_field, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_FN] = {"<POP>", "pop.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_func, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_P] = {"<POP>", "pop.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_Q] = {"<POP>", "pop.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_quat, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_I] = {"<POP>", "pop.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_integer, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POP_D] = {"<POP>", "pop.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_double, ev_invalid, ev_invalid,
|
|
|
|
PROG_VERSION,
|
|
|
|
"%ga",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_S] = {"<POP>", "popb.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_F] = {"<POP>", "popb.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_V] = {"<POP>", "popb.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_ENT] = {"<POP>", "popb.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_FLD] = {"<POP>", "popb.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_FN] = {"<POP>", "popb.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_P] = {"<POP>", "popb.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_Q] = {"<POP>", "popb.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_I] = {"<POP>", "popb.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_integer, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPB_D] = {"<POP>", "popb.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_pointer, ev_integer, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %Gb)",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_S] = {"<POP>", "popbi.s",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_string,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_F] = {"<POP>", "popbi.f",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_float,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_V] = {"<POP>", "popbi.v",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_vector,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_ENT] = {"<POP>", "popbi.ent",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_entity,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_FLD] = {"<POP>", "popbi.fld",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_field,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_FN] = {"<POP>", "popbi.fn",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_func,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_P] = {"<POP>", "popbi.p",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_pointer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_Q] = {"<POP>", "popbi.q",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_quat,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_I] = {"<POP>", "popbi.i",
|
2018-10-11 04:24:03 +00:00
|
|
|
ev_pointer, ev_short, ev_integer,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2022-01-02 10:02:48 +00:00
|
|
|
[OP_POPBI_D] = {"<POP>", "popbi.d",
|
2021-12-31 10:16:02 +00:00
|
|
|
ev_pointer, ev_short, ev_double,
|
|
|
|
PROG_VERSION,
|
|
|
|
"*(%Ga + %sb)",
|
|
|
|
},
|
2018-10-11 04:24:03 +00:00
|
|
|
|
2002-01-30 21:20:12 +00:00
|
|
|
// end of table
|
2021-12-31 10:16:02 +00:00
|
|
|
[OP_MEMSETPI+1] = {0}, //XXX FIXME relies on OP_MEMSETPI being last
|
2001-07-14 02:34:16 +00:00
|
|
|
};
|
|
|
|
|
2021-12-31 10:16:02 +00:00
|
|
|
const opcode_t *
|
2007-04-04 12:30:49 +00:00
|
|
|
PR_Opcode (pr_short_t opcode)
|
2001-07-14 02:34:16 +00:00
|
|
|
{
|
2021-12-31 10:16:02 +00:00
|
|
|
if (opcode < 0
|
|
|
|
|| opcode >= (int) (sizeof (pr_opcodes) / sizeof (pr_opcodes[0])) - 1) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return &pr_opcodes[opcode];
|
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)
|
|
|
|
{
|
|
|
|
}
|
2001-11-02 22:41:11 +00:00
|
|
|
|
|
|
|
static inline void
|
2021-12-31 10:16:02 +00:00
|
|
|
check_branch (progs_t *pr, dstatement_t *st, const opcode_t *op, short offset)
|
2001-11-02 22:41:11 +00:00
|
|
|
{
|
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
|
2021-12-31 10:16:02 +00:00
|
|
|
check_global (progs_t *pr, dstatement_t *st, const 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
|
2021-12-31 10:16:02 +00:00
|
|
|
check_global_size (progs_t *pr, dstatement_t *st, const opcode_t *op,
|
2010-01-13 06:19:50 +00:00
|
|
|
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)
|
|
|
|
{
|
2021-12-31 10:16:02 +00:00
|
|
|
const opcode_t *op;
|
2001-11-02 22:41:11 +00:00
|
|
|
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,
|
2021-12-31 10:16:02 +00:00
|
|
|
(op - pr_opcodes) != OP_STORE_F);
|
2010-11-20 05:12:40 +00:00
|
|
|
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
|
|
|
}
|