1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

SCP: Add C style expression support for IF conditions and SET ENV -A

Expression evaluation code provided by Gabriel Pizzolato.
This commit is contained in:
Mark Pizzolato
2018-05-01 22:08:06 -07:00
parent 8fe02ad6d1
commit 4e508cfc29
4 changed files with 696 additions and 58 deletions

View File

@@ -405,8 +405,9 @@ typedef uint32 t_addr;
#define SCPE_EXPECT (SCPE_BASE + 45) /* expect matched */
#define SCPE_AMBREG (SCPE_BASE + 46) /* ambiguous register */
#define SCPE_REMOTE (SCPE_BASE + 47) /* remote console command */
#define SCPE_INVEXPR (SCPE_BASE + 48) /* invalid expression */
#define SCPE_MAX_ERR (SCPE_BASE + 47) /* Maximum SCPE Error Value */
#define SCPE_MAX_ERR (SCPE_BASE + 48) /* Maximum SCPE Error Value */
#define SCPE_KFLAG 0x10000000 /* tti data flag */
#define SCPE_BREAK 0x20000000 /* tti break flag */
#define SCPE_NOMESSAGE 0x40000000 /* message display supression flag */
@@ -843,9 +844,11 @@ struct DEBTAB {
#define DEBUG_PRI(d,m) (sim_deb && (d.dctrl & (m)))
#define DEBUG_PRJ(d,m) (sim_deb && ((d)->dctrl & (m)))
#define SIM_DBG_EVENT 0x10000
#define SIM_DBG_ACTIVATE 0x20000
#define SIM_DBG_AIO_QUEUE 0x40000
#define SIM_DBG_EVENT 0x010000
#define SIM_DBG_ACTIVATE 0x020000
#define SIM_DBG_AIO_QUEUE 0x040000
#define SIM_DBG_EXP_STACK 0x080000
#define SIM_DBG_EXP_EVAL 0x100000
/* Open File Reference */
struct FILEREF {