2014-07-23 22:39:29 +02:00
|
|
|
#ifndef IVL_codes_H
|
|
|
|
|
#define IVL_codes_H
|
2001-03-11 01:29:38 +01:00
|
|
|
/*
|
2020-07-20 06:34:04 +02:00
|
|
|
* Copyright (c) 2001-2020 Stephen Williams (steve@icarus.com)
|
2001-03-11 01:29:38 +01:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form 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 the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2001-03-11 01:29:38 +01:00
|
|
|
*/
|
|
|
|
|
|
2009-11-29 06:39:35 +01:00
|
|
|
# include "config.h"
|
2004-12-11 03:31:25 +01:00
|
|
|
# include "vvp_net.h"
|
2007-01-16 06:44:14 +01:00
|
|
|
# include "array.h"
|
2001-03-11 01:29:38 +01:00
|
|
|
# include "vthread.h"
|
|
|
|
|
|
|
|
|
|
typedef bool (*vvp_code_fun)(vthread_t thr, vvp_code_t code);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* These functions are implementations of executable op-codes. The
|
|
|
|
|
* implementation lives in the vthread.cc file so that they have
|
|
|
|
|
* access to the thread context.
|
|
|
|
|
*/
|
2008-05-07 07:19:59 +02:00
|
|
|
extern bool of_ABS_WR(vthread_t thr, vvp_code_t code);
|
2001-03-31 03:59:58 +02:00
|
|
|
extern bool of_ADD(vthread_t thr, vvp_code_t code);
|
2003-01-26 00:48:05 +01:00
|
|
|
extern bool of_ADD_WR(vthread_t thr, vvp_code_t code);
|
2014-11-18 21:27:55 +01:00
|
|
|
extern bool of_ADDI(vthread_t thr, vvp_code_t code);
|
2008-09-27 01:54:13 +02:00
|
|
|
extern bool of_ALLOC(vthread_t thr, vvp_code_t code);
|
2001-04-01 08:12:13 +02:00
|
|
|
extern bool of_AND(vthread_t thr, vvp_code_t code);
|
2001-06-18 03:09:32 +02:00
|
|
|
extern bool of_ANDR(vthread_t thr, vvp_code_t code);
|
2009-09-03 05:04:34 +02:00
|
|
|
extern bool of_ASSIGN_AR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_ASSIGN_ARD(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_ASSIGN_ARE(vthread_t thr, vvp_code_t code);
|
2002-04-22 00:29:49 +02:00
|
|
|
extern bool of_ASSIGN_D(vthread_t thr, vvp_code_t code);
|
2005-03-03 05:33:10 +01:00
|
|
|
extern bool of_ASSIGN_MV(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_ASSIGN_VEC4(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_ASSIGN_VEC4D(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_ASSIGN_VEC4E(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_ASSIGN_VEC4_A_D(vthread_t thr, vvp_code_t code);
|
2014-01-24 03:39:29 +01:00
|
|
|
extern bool of_ASSIGN_VEC4_A_E(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_ASSIGN_VEC4_OFF_D(vthread_t thr, vvp_code_t code);
|
2014-01-24 03:39:29 +01:00
|
|
|
extern bool of_ASSIGN_VEC4_OFF_E(vthread_t thr, vvp_code_t code);
|
2004-05-19 05:26:24 +02:00
|
|
|
extern bool of_ASSIGN_WR(vthread_t thr, vvp_code_t code);
|
2008-09-09 04:49:52 +02:00
|
|
|
extern bool of_ASSIGN_WRD(vthread_t thr, vvp_code_t code);
|
2008-09-11 04:37:11 +02:00
|
|
|
extern bool of_ASSIGN_WRE(vthread_t thr, vvp_code_t code);
|
2002-08-22 05:38:40 +02:00
|
|
|
extern bool of_BLEND(vthread_t thr, vvp_code_t code);
|
2008-03-08 03:51:50 +01:00
|
|
|
extern bool of_BLEND_WR(vthread_t thr, vvp_code_t code);
|
2001-05-06 01:55:46 +02:00
|
|
|
extern bool of_BREAKPOINT(vthread_t thr, vvp_code_t code);
|
2015-12-28 05:29:10 +01:00
|
|
|
extern bool of_CALLF_OBJ(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CALLF_REAL(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CALLF_STR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CALLF_VEC4(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CALLF_VOID(vthread_t thr, vvp_code_t code);
|
2005-05-02 00:05:21 +02:00
|
|
|
extern bool of_CASSIGN_LINK(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_CASSIGN_VEC4(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:58:58 +01:00
|
|
|
extern bool of_CASSIGN_VEC4_OFF(vthread_t thr, vvp_code_t code);
|
2008-04-17 01:11:23 +02:00
|
|
|
extern bool of_CASSIGN_WR(vthread_t thr, vvp_code_t code);
|
2010-10-20 04:09:06 +02:00
|
|
|
extern bool of_CAST2(vthread_t thr, vvp_code_t code);
|
2019-09-11 22:56:27 +02:00
|
|
|
extern bool of_CAST_VEC2_DAR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CAST_VEC4_DAR(vthread_t thr, vvp_code_t code);
|
2019-09-09 22:39:35 +02:00
|
|
|
extern bool of_CAST_VEC4_STR(vthread_t thr, vvp_code_t code);
|
2014-11-22 01:45:27 +01:00
|
|
|
extern bool of_CMPE(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CMPIE(vthread_t thr, vvp_code_t code);
|
2014-12-03 20:06:11 +01:00
|
|
|
extern bool of_CMPINE(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CMPNE(vthread_t thr, vvp_code_t code);
|
2001-04-05 03:12:27 +02:00
|
|
|
extern bool of_CMPS(vthread_t thr, vvp_code_t code);
|
2014-11-20 01:38:43 +01:00
|
|
|
extern bool of_CMPIS(vthread_t thr, vvp_code_t code);
|
2012-06-23 17:35:55 +02:00
|
|
|
extern bool of_CMPSTR(vthread_t thr, vvp_code_t code);
|
2001-03-22 06:08:00 +01:00
|
|
|
extern bool of_CMPU(vthread_t thr, vvp_code_t code);
|
2014-11-20 01:38:43 +01:00
|
|
|
extern bool of_CMPIU(vthread_t thr, vvp_code_t code);
|
2017-11-18 04:32:09 +01:00
|
|
|
extern bool of_CMPWE(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CMPWNE(vthread_t thr, vvp_code_t code);
|
2003-01-26 00:48:05 +01:00
|
|
|
extern bool of_CMPWR(vthread_t thr, vvp_code_t code);
|
2005-09-14 04:50:07 +02:00
|
|
|
extern bool of_CMPWS(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CMPWU(vthread_t thr, vvp_code_t code);
|
2001-04-01 06:34:28 +02:00
|
|
|
extern bool of_CMPX(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CMPZ(vthread_t thr, vvp_code_t code);
|
2012-06-25 00:33:40 +02:00
|
|
|
extern bool of_CONCAT_STR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CONCATI_STR(vthread_t thr, vvp_code_t code);
|
2013-12-28 06:50:37 +01:00
|
|
|
extern bool of_CONCAT_VEC4(vthread_t thr, vvp_code_t code);
|
2014-11-18 21:27:55 +01:00
|
|
|
extern bool of_CONCATI_VEC4(vthread_t thr, vvp_code_t code);
|
2009-12-20 00:34:54 +01:00
|
|
|
extern bool of_CVT_RV(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CVT_RV_S(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CVT_SR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_CVT_UR(vthread_t thr, vvp_code_t code);
|
2003-02-27 21:36:29 +01:00
|
|
|
extern bool of_CVT_VR(vthread_t thr, vvp_code_t code);
|
2001-11-01 04:00:19 +01:00
|
|
|
extern bool of_DEASSIGN(vthread_t thr, vvp_code_t code);
|
2008-04-17 01:11:23 +02:00
|
|
|
extern bool of_DEASSIGN_WR(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_DEBUG_THR(vthread_t thr, vvp_code_t code);
|
2001-03-11 01:29:38 +01:00
|
|
|
extern bool of_DELAY(vthread_t thr, vvp_code_t code);
|
2001-07-19 06:40:55 +02:00
|
|
|
extern bool of_DELAYX(vthread_t thr, vvp_code_t code);
|
2020-07-25 09:48:57 +02:00
|
|
|
extern bool of_DELETE_ELEM(vthread_t thr, vvp_code_t code);
|
2012-07-17 03:15:29 +02:00
|
|
|
extern bool of_DELETE_OBJ(vthread_t thr, vvp_code_t code);
|
2001-04-18 06:21:23 +02:00
|
|
|
extern bool of_DISABLE(vthread_t thr, vvp_code_t code);
|
2013-10-18 00:09:31 +02:00
|
|
|
extern bool of_DISABLE_FORK(vthread_t thr, vvp_code_t code);
|
2001-10-16 03:26:54 +02:00
|
|
|
extern bool of_DIV(vthread_t thr, vvp_code_t code);
|
2002-04-14 20:41:34 +02:00
|
|
|
extern bool of_DIV_S(vthread_t thr, vvp_code_t code);
|
2003-03-28 03:33:56 +01:00
|
|
|
extern bool of_DIV_WR(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_DUP_REAL(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_DUP_VEC4(vthread_t thr, vvp_code_t code);
|
2001-03-11 01:29:38 +01:00
|
|
|
extern bool of_END(vthread_t thr, vvp_code_t code);
|
2014-01-05 21:39:52 +01:00
|
|
|
extern bool of_EVENT(vthread_t thr, vvp_code_t code);
|
2008-09-11 04:37:11 +02:00
|
|
|
extern bool of_EVCTL(vthread_t thr, vvp_code_t code);
|
2008-09-18 02:49:45 +02:00
|
|
|
extern bool of_EVCTLC(vthread_t thr, vvp_code_t code);
|
2008-09-11 04:37:11 +02:00
|
|
|
extern bool of_EVCTLI(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_EVCTLS(vthread_t thr, vvp_code_t code);
|
2011-02-28 04:20:16 +01:00
|
|
|
extern bool of_FILE_LINE(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_FLAG_GET_VEC4(vthread_t thr, vvp_code_t code);
|
2014-11-20 23:47:44 +01:00
|
|
|
extern bool of_FLAG_INV(vthread_t thr, vvp_code_t code);
|
2014-01-14 21:00:39 +01:00
|
|
|
extern bool of_FLAG_MOV(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_FLAG_OR(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_FLAG_SET_IMM(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_FLAG_SET_VEC4(vthread_t thr, vvp_code_t code);
|
2005-06-02 18:02:11 +02:00
|
|
|
extern bool of_FORCE_LINK(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_FORCE_VEC4(vthread_t thr, vvp_code_t code);
|
2014-01-14 03:57:03 +01:00
|
|
|
extern bool of_FORCE_VEC4_OFF(vthread_t thr, vvp_code_t code);
|
2016-05-10 23:16:40 +02:00
|
|
|
extern bool of_FORCE_VEC4_OFF_D(vthread_t thr, vvp_code_t code);
|
2008-04-17 01:11:23 +02:00
|
|
|
extern bool of_FORCE_WR(vthread_t thr, vvp_code_t code);
|
2001-03-30 06:55:22 +02:00
|
|
|
extern bool of_FORK(vthread_t thr, vvp_code_t code);
|
2008-09-27 01:54:13 +02:00
|
|
|
extern bool of_FREE(vthread_t thr, vvp_code_t code);
|
2001-03-22 06:08:00 +01:00
|
|
|
extern bool of_INV(vthread_t thr, vvp_code_t code);
|
2001-05-01 03:09:39 +02:00
|
|
|
extern bool of_IX_ADD(vthread_t thr, vvp_code_t code);
|
2007-12-07 22:12:19 +01:00
|
|
|
extern bool of_IX_GETV(vthread_t thr, vvp_code_t code);
|
2009-12-19 19:00:08 +01:00
|
|
|
extern bool of_IX_GETV_S(vthread_t thr, vvp_code_t code);
|
2001-05-01 03:09:39 +02:00
|
|
|
extern bool of_IX_LOAD(vthread_t thr, vvp_code_t code);
|
2013-10-08 01:50:36 +02:00
|
|
|
extern bool of_IX_MOV(vthread_t thr, vvp_code_t code);
|
2001-05-01 03:09:39 +02:00
|
|
|
extern bool of_IX_MUL(vthread_t thr, vvp_code_t code);
|
2001-05-03 01:16:50 +02:00
|
|
|
extern bool of_IX_SUB(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_IX_VEC4(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_IX_VEC4_S(vthread_t thr, vvp_code_t code);
|
2001-03-20 07:16:23 +01:00
|
|
|
extern bool of_JMP(vthread_t thr, vvp_code_t code);
|
2001-03-22 06:08:00 +01:00
|
|
|
extern bool of_JMP0(vthread_t thr, vvp_code_t code);
|
2001-03-25 05:54:26 +02:00
|
|
|
extern bool of_JMP0XZ(vthread_t thr, vvp_code_t code);
|
2001-03-31 19:36:02 +02:00
|
|
|
extern bool of_JMP1(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_JMP1XZ(vthread_t thr, vvp_code_t code);
|
2001-03-30 06:55:22 +02:00
|
|
|
extern bool of_JOIN(vthread_t thr, vvp_code_t code);
|
2012-05-20 20:39:52 +02:00
|
|
|
extern bool of_JOIN_DETACH(vthread_t thr, vvp_code_t code);
|
2008-11-02 04:44:03 +01:00
|
|
|
extern bool of_LOAD_AR(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_LOAD_REAL(vthread_t thr, vvp_code_t code);
|
2012-10-08 05:29:24 +02:00
|
|
|
extern bool of_LOAD_DAR_R(vthread_t thr, vvp_code_t code);
|
2012-10-15 01:12:16 +02:00
|
|
|
extern bool of_LOAD_DAR_STR(vthread_t thr, vvp_code_t code);
|
2014-02-07 00:05:26 +01:00
|
|
|
extern bool of_LOAD_DAR_VEC4(vthread_t thr, vvp_code_t code);
|
2012-11-22 20:08:13 +01:00
|
|
|
extern bool of_LOAD_OBJ(vthread_t thr, vvp_code_t code);
|
2014-08-30 05:31:51 +02:00
|
|
|
extern bool of_LOAD_OBJA(vthread_t thr, vvp_code_t code);
|
2012-06-23 17:35:55 +02:00
|
|
|
extern bool of_LOAD_STR(vthread_t thr, vvp_code_t code);
|
2013-01-06 00:57:58 +01:00
|
|
|
extern bool of_LOAD_STRA(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_LOAD_VEC4(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_LOAD_VEC4A(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_MAX_WR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_MIN_WR(vthread_t thr, vvp_code_t code);
|
2001-05-24 06:20:10 +02:00
|
|
|
extern bool of_MOD(vthread_t thr, vvp_code_t code);
|
2004-06-19 17:52:53 +02:00
|
|
|
extern bool of_MOD_S(vthread_t thr, vvp_code_t code);
|
2006-08-09 07:19:08 +02:00
|
|
|
extern bool of_MOD_WR(vthread_t thr, vvp_code_t code);
|
2011-11-29 00:29:53 +01:00
|
|
|
extern bool of_MOV_WU(vthread_t thr, vvp_code_t code);
|
2001-06-17 01:45:05 +02:00
|
|
|
extern bool of_MUL(vthread_t thr, vvp_code_t code);
|
2014-12-02 21:46:17 +01:00
|
|
|
extern bool of_MULI(vthread_t thr, vvp_code_t code);
|
2003-01-26 00:48:05 +01:00
|
|
|
extern bool of_MUL_WR(vthread_t thr, vvp_code_t code);
|
2002-09-12 17:49:43 +02:00
|
|
|
extern bool of_NAND(vthread_t thr, vvp_code_t code);
|
2001-06-18 03:09:32 +02:00
|
|
|
extern bool of_NANDR(vthread_t thr, vvp_code_t code);
|
2012-11-18 02:20:33 +01:00
|
|
|
extern bool of_NEW_COBJ(vthread_t thr, vvp_code_t code);
|
2012-07-16 05:44:07 +02:00
|
|
|
extern bool of_NEW_DARRAY(vthread_t thr, vvp_code_t code);
|
2001-03-11 01:29:38 +01:00
|
|
|
extern bool of_NOOP(vthread_t thr, vvp_code_t code);
|
2002-09-18 06:29:55 +02:00
|
|
|
extern bool of_NOR(vthread_t thr, vvp_code_t code);
|
2001-04-02 00:25:33 +02:00
|
|
|
extern bool of_NORR(vthread_t thr, vvp_code_t code);
|
2012-11-22 02:48:46 +01:00
|
|
|
extern bool of_NULL(vthread_t thr, vvp_code_t code);
|
2001-04-01 09:22:08 +02:00
|
|
|
extern bool of_OR(vthread_t thr, vvp_code_t code);
|
2001-06-18 03:09:32 +02:00
|
|
|
extern bool of_ORR(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_PAD_S(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_PAD_U(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_PART_S(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_PART_U(vthread_t thr, vvp_code_t code);
|
2014-11-21 03:43:24 +01:00
|
|
|
extern bool of_PARTI_S(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_PARTI_U(vthread_t thr, vvp_code_t code);
|
2013-01-11 03:48:15 +01:00
|
|
|
extern bool of_POP_OBJ(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_POP_REAL(vthread_t thr, vvp_code_t code);
|
2012-06-25 00:33:40 +02:00
|
|
|
extern bool of_POP_STR(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_POP_VEC4(vthread_t thr, vvp_code_t code);
|
2008-02-05 04:43:50 +01:00
|
|
|
extern bool of_POW(vthread_t thr, vvp_code_t code);
|
2008-11-27 03:20:53 +01:00
|
|
|
extern bool of_POW_S(vthread_t thr, vvp_code_t code);
|
2008-02-01 02:15:03 +01:00
|
|
|
extern bool of_POW_WR(vthread_t thr, vvp_code_t code);
|
2020-07-20 06:34:04 +02:00
|
|
|
extern bool of_QPOP_B_REAL(vthread_t thr, vvp_code_t code);
|
2014-08-18 03:36:47 +02:00
|
|
|
extern bool of_QPOP_B_STR(vthread_t thr, vvp_code_t code);
|
2014-10-24 18:03:20 +02:00
|
|
|
extern bool of_QPOP_B_V(vthread_t thr, vvp_code_t code);
|
2020-07-20 06:34:04 +02:00
|
|
|
extern bool of_QPOP_F_REAL(vthread_t thr, vvp_code_t code);
|
2014-08-18 03:36:47 +02:00
|
|
|
extern bool of_QPOP_F_STR(vthread_t thr, vvp_code_t code);
|
2014-10-24 18:03:20 +02:00
|
|
|
extern bool of_QPOP_F_V(vthread_t thr, vvp_code_t code);
|
2013-01-27 21:30:38 +01:00
|
|
|
extern bool of_PROP_OBJ(vthread_t thr, vvp_code_t code);
|
2013-01-11 03:48:15 +01:00
|
|
|
extern bool of_PROP_R(vthread_t thr, vvp_code_t code);
|
2013-01-14 02:14:40 +01:00
|
|
|
extern bool of_PROP_STR(vthread_t thr, vvp_code_t code);
|
2012-12-10 02:59:16 +01:00
|
|
|
extern bool of_PROP_V(vthread_t thr, vvp_code_t code);
|
2012-06-18 03:43:25 +02:00
|
|
|
extern bool of_PUSHI_STR(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_PUSHI_REAL(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_PUSHI_VEC4(vthread_t thr, vvp_code_t code);
|
2012-06-18 03:22:50 +02:00
|
|
|
extern bool of_PUSHV_STR(vthread_t thr, vvp_code_t code);
|
2014-02-01 04:01:28 +01:00
|
|
|
extern bool of_PUTC_STR_VEC4(vthread_t thr, vvp_code_t code);
|
2004-12-17 05:47:47 +01:00
|
|
|
extern bool of_RELEASE_NET(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_RELEASE_REG(vthread_t thr, vvp_code_t code);
|
2008-04-17 01:11:23 +02:00
|
|
|
extern bool of_RELEASE_WR(vthread_t thr, vvp_code_t code);
|
2014-01-04 23:11:07 +01:00
|
|
|
extern bool of_REPLICATE(vthread_t thr, vvp_code_t code);
|
2016-01-11 02:09:33 +01:00
|
|
|
extern bool of_RET_REAL(vthread_t thr, vvp_code_t code);
|
2016-03-02 00:38:28 +01:00
|
|
|
extern bool of_RET_STR(vthread_t thr, vvp_code_t code);
|
2016-01-25 03:36:26 +01:00
|
|
|
extern bool of_RET_VEC4(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_RETLOAD_REAL(vthread_t thr, vvp_code_t code);
|
2016-03-02 00:38:28 +01:00
|
|
|
extern bool of_RETLOAD_STR(vthread_t thr, vvp_code_t code);
|
2016-01-25 03:36:26 +01:00
|
|
|
extern bool of_RETLOAD_VEC4(vthread_t thr, vvp_code_t code);
|
2013-04-28 19:10:36 +02:00
|
|
|
extern bool of_SCOPY(vthread_t thr, vvp_code_t code);
|
2013-10-19 03:32:56 +02:00
|
|
|
extern bool of_SET_DAR_OBJ_REAL(vthread_t thr, vvp_code_t code);
|
2013-10-20 00:11:13 +02:00
|
|
|
extern bool of_SET_DAR_OBJ_STR(vthread_t thr, vvp_code_t code);
|
2014-02-07 20:24:41 +01:00
|
|
|
extern bool of_SET_DAR_OBJ_VEC4(vthread_t thr, vvp_code_t code);
|
2003-05-26 06:44:54 +02:00
|
|
|
extern bool of_SET_X0_X(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_SHIFTL(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_SHIFTR(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_SHIFTR_S(vthread_t thr, vvp_code_t code);
|
2013-12-28 06:50:37 +01:00
|
|
|
extern bool of_SPLIT_VEC4(vthread_t thr, vvp_code_t code);
|
2012-10-23 23:48:25 +02:00
|
|
|
extern bool of_STORE_DAR_R(vthread_t thr, vvp_code_t code);
|
2012-10-15 01:12:16 +02:00
|
|
|
extern bool of_STORE_DAR_STR(vthread_t thr, vvp_code_t code);
|
2014-02-07 00:05:26 +01:00
|
|
|
extern bool of_STORE_DAR_VEC4(vthread_t thr, vvp_code_t code);
|
2014-08-05 05:11:21 +02:00
|
|
|
extern bool of_STORE_QB_R(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_STORE_QB_STR(vthread_t thr, vvp_code_t code);
|
2014-10-24 18:03:20 +02:00
|
|
|
extern bool of_STORE_QB_V(vthread_t thr, vvp_code_t code);
|
2014-08-05 05:11:21 +02:00
|
|
|
extern bool of_STORE_QF_R(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_STORE_QF_STR(vthread_t thr, vvp_code_t code);
|
2014-10-24 18:03:20 +02:00
|
|
|
extern bool of_STORE_QF_V(vthread_t thr, vvp_code_t code);
|
2012-07-16 05:44:07 +02:00
|
|
|
extern bool of_STORE_OBJ(vthread_t thr, vvp_code_t code);
|
2014-08-30 05:31:51 +02:00
|
|
|
extern bool of_STORE_OBJA(vthread_t thr, vvp_code_t code);
|
2013-01-27 21:30:38 +01:00
|
|
|
extern bool of_STORE_PROP_OBJ(vthread_t thr, vvp_code_t code);
|
2013-01-11 03:48:15 +01:00
|
|
|
extern bool of_STORE_PROP_R(vthread_t thr, vvp_code_t code);
|
2013-01-14 02:14:40 +01:00
|
|
|
extern bool of_STORE_PROP_STR(vthread_t thr, vvp_code_t code);
|
2012-12-10 02:59:16 +01:00
|
|
|
extern bool of_STORE_PROP_V(vthread_t thr, vvp_code_t code);
|
2012-10-23 02:20:43 +02:00
|
|
|
extern bool of_STORE_REAL(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_STORE_REALA(vthread_t thr, vvp_code_t code);
|
2012-06-18 03:22:50 +02:00
|
|
|
extern bool of_STORE_STR(vthread_t thr, vvp_code_t code);
|
2013-01-06 00:57:58 +01:00
|
|
|
extern bool of_STORE_STRA(vthread_t thr, vvp_code_t code);
|
2013-12-27 16:04:42 +01:00
|
|
|
extern bool of_STORE_VEC4(vthread_t thr, vvp_code_t code);
|
2014-01-05 19:30:59 +01:00
|
|
|
extern bool of_STORE_VEC4A(vthread_t thr, vvp_code_t code);
|
2001-05-02 03:57:25 +02:00
|
|
|
extern bool of_SUB(vthread_t thr, vvp_code_t code);
|
2014-12-05 18:45:29 +01:00
|
|
|
extern bool of_SUBI(vthread_t thr, vvp_code_t code);
|
2003-02-06 18:41:47 +01:00
|
|
|
extern bool of_SUB_WR(vthread_t thr, vvp_code_t code);
|
2013-01-05 20:40:12 +01:00
|
|
|
extern bool of_SUBSTR(vthread_t thr, vvp_code_t code);
|
2014-02-01 04:01:28 +01:00
|
|
|
extern bool of_SUBSTR_VEC4(vthread_t thr, vvp_code_t code);
|
2012-11-17 04:13:06 +01:00
|
|
|
extern bool of_TEST_NUL(vthread_t thr, vvp_code_t code);
|
2014-09-08 01:22:49 +02:00
|
|
|
extern bool of_TEST_NUL_A(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_TEST_NUL_OBJ(vthread_t thr, vvp_code_t code);
|
2014-10-22 21:58:50 +02:00
|
|
|
extern bool of_TEST_NUL_PROP(vthread_t thr, vvp_code_t code);
|
2001-03-16 02:44:34 +01:00
|
|
|
extern bool of_VPI_CALL(vthread_t thr, vvp_code_t code);
|
2001-04-01 08:12:13 +02:00
|
|
|
extern bool of_WAIT(vthread_t thr, vvp_code_t code);
|
2013-10-23 00:58:59 +02:00
|
|
|
extern bool of_WAIT_FORK(vthread_t thr, vvp_code_t code);
|
2001-04-15 06:07:56 +02:00
|
|
|
extern bool of_XNOR(vthread_t thr, vvp_code_t code);
|
2001-06-18 03:09:32 +02:00
|
|
|
extern bool of_XNORR(vthread_t thr, vvp_code_t code);
|
2001-04-15 18:37:48 +02:00
|
|
|
extern bool of_XOR(vthread_t thr, vvp_code_t code);
|
2001-06-18 03:09:32 +02:00
|
|
|
extern bool of_XORR(vthread_t thr, vvp_code_t code);
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2001-04-13 05:55:18 +02:00
|
|
|
extern bool of_ZOMBIE(vthread_t thr, vvp_code_t code);
|
|
|
|
|
|
2016-01-18 01:23:28 +01:00
|
|
|
extern bool of_EXEC_UFUNC_REAL(vthread_t thr, vvp_code_t code);
|
|
|
|
|
extern bool of_EXEC_UFUNC_VEC4(vthread_t thr, vvp_code_t code);
|
2014-03-02 00:25:35 +01:00
|
|
|
extern bool of_REAP_UFUNC(vthread_t thr, vvp_code_t code);
|
2002-03-18 01:19:34 +01:00
|
|
|
|
2003-07-03 22:03:36 +02:00
|
|
|
extern bool of_CHUNK_LINK(vthread_t thr, vvp_code_t code);
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/*
|
|
|
|
|
* This is the format of a machine code instruction.
|
|
|
|
|
*/
|
|
|
|
|
struct vvp_code_s {
|
|
|
|
|
vvp_code_fun opcode;
|
|
|
|
|
|
|
|
|
|
union {
|
2002-05-31 06:09:58 +02:00
|
|
|
unsigned long number;
|
2004-12-11 03:31:25 +01:00
|
|
|
vvp_net_t *net;
|
2003-07-03 22:03:36 +02:00
|
|
|
vvp_code_t cptr;
|
2007-01-16 06:44:14 +01:00
|
|
|
vvp_array_t array;
|
2012-01-21 23:47:42 +01:00
|
|
|
class __vpiHandle*handle;
|
2015-12-28 05:29:10 +01:00
|
|
|
__vpiScope*scope;
|
2012-06-18 03:43:25 +02:00
|
|
|
const char*text;
|
2001-03-11 01:29:38 +01:00
|
|
|
};
|
2001-03-12 00:06:49 +01:00
|
|
|
|
2001-11-01 04:00:19 +01:00
|
|
|
union {
|
2008-05-28 02:51:28 +02:00
|
|
|
uint32_t bit_idx[2];
|
2004-12-11 03:31:25 +01:00
|
|
|
vvp_net_t *net2;
|
2003-07-03 22:03:36 +02:00
|
|
|
vvp_code_t cptr2;
|
2011-09-23 04:57:59 +02:00
|
|
|
class ufunc_core*ufunc_core_ptr;
|
2001-11-01 04:00:19 +01:00
|
|
|
};
|
2001-04-18 06:21:23 +02:00
|
|
|
};
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/*
|
|
|
|
|
* This function clears the code space, ready for initialization. This
|
|
|
|
|
* needs to be done exactly once before any instructions are created.
|
|
|
|
|
*/
|
|
|
|
|
extern void codespace_init(void);
|
|
|
|
|
|
2001-11-01 04:00:19 +01:00
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/*
|
|
|
|
|
* This function returns a pointer to the next free instruction in the
|
2003-07-03 22:03:36 +02:00
|
|
|
* code address space. The codespace_next returns a pointer to the
|
|
|
|
|
* next opcode that will be allocated. This is used by label
|
|
|
|
|
* statements to get the address that will be attached to a label in
|
|
|
|
|
* the code.
|
2001-03-11 01:29:38 +01:00
|
|
|
*/
|
2003-07-03 22:03:36 +02:00
|
|
|
extern vvp_code_t codespace_allocate(void);
|
|
|
|
|
extern vvp_code_t codespace_next(void);
|
|
|
|
|
extern vvp_code_t codespace_null(void);
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2014-07-23 22:39:29 +02:00
|
|
|
#endif /* IVL_codes_H */
|