1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +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

@@ -328,6 +328,7 @@ Device simulator authors can easily schedule their device polling activities to
SCREENSHOT filename.bmp Save video window to the specified file
SET ENV Name=Value Set Environment variable
SET ENV -p "Prompt" Name=Default Gather User input into an Environment Variable
SET ENV -a Name=Expression Evaluate an expression and store result in an Environment Variable
SET ASYNCH Enable Asynchronous I/O
SET NOASYNCH Disable Asynchronous I/O
SET VERIFY Enable command display while processing DO command files
@@ -358,6 +359,7 @@ Device simulator authors can easily schedule their device polling activities to
NOOP A no-op command
ON Establish or cancel an ON condition dispatch
IF Test some simulator state and conditionally execute commands
IF (C-style-expression) Test some simulator state and conditionally execute commands
CD Change working directory
SET DEFAULT Change working directory
PWD Show working directory