Commit graph

801 commits

Author SHA1 Message Date
Mark Pizzolato
72d4622ddf SCP: Add ECHOF command which takes a quoted string as an argument 2018-01-04 07:06:51 -08:00
Mark Pizzolato
9b1f44f787 SCP: Remove optional write_callback in the REGister structure
The REG structure exists to serve SCP's various activities.  It is
does not exist to provide capabilities to a VM.
2017-12-09 02:54:10 -08:00
Mark Pizzolato
a4a6a1d409 SCP: Fix regression which disabled limit check when parsing unsigned integers
This affected unit and tmxr line checks when there was only one unit or line.
2017-12-05 12:23:31 -08:00
Mark Pizzolato
133cf727d5 SCP: Move test for unit disabled to also cover devices with attach routines 2017-12-05 12:17:23 -08:00
Mark Pizzolato
0293d7f4af SCP: Enrich EXPECT and SEND help and document information 2017-11-29 16:49:20 -08:00
Mark Pizzolato
7246e74004 SCP: Add a SIM_OSTYPE built-in environment variable. 2017-11-20 15:23:19 -08:00
Mark Pizzolato
61679ed8f0 SCP: Add optional write_callback to REGister structure called only on DEPOSIT
Add necessary macros to populate this field and cleanup all the
existing macros to be simpler.
2017-11-19 08:18:02 -08:00
Mark Pizzolato
9bb1cfd9f9 SCP: Add useful info for HELP SET CONSOLE options 2017-11-14 18:47:44 -08:00
Mark Pizzolato
733ac0d982 SCP: Make SLEEP command interruptable with SIGINT 2017-11-07 13:34:53 -08:00
Mark Pizzolato
097172f8a3 doc: Add missing commands descriptions 2017-11-03 09:36:11 -07:00
Mark Pizzolato
4ca544f60a SCP: Add SLEEP command 2017-11-03 08:51:19 -07:00
Mark Pizzolato
9134b8e5d3 SCP: Add SIM_BIN_PATH environment variable as the simulator's argv[0] 2017-10-24 12:21:52 -07:00
Mark Pizzolato
35bfe17f75 SCP: Allow QUIET mode to be set in a default simulator command file 2017-10-23 16:24:26 -07:00
Mark Pizzolato
b80402e59c SCP: Fix display of context command when reporting processing DQ in QUIET mode 2017-10-23 14:14:00 -07:00
Mark Pizzolato
09f69f13b5 SCP: Fix command context reporting when errors occur in QUIET mode 2017-10-22 18:44:14 -07:00
Mark Pizzolato
3d1f092573 SCP: Provide command context for messages emitted during ATTACH and DETACH
Context and non error messages will be suppressed in quiet mode or when -Q
switch is explicitly supplied on command line
2017-10-22 08:33:21 -07:00
Mark Pizzolato
5b248cf7f4 SCP: Fix Coverity identified warning and migrate away from strncpy to strlcpy 2017-10-19 20:04:08 -07:00
Mark Pizzolato
6d1e873087 SCP: Allow HALTAFTER= to be specified for RUN/GO UNTIL commands 2017-10-19 12:30:24 -07:00
Mark Pizzolato
932d16da53 SCP: Rework SEND and EXPECT commands to provide default and temporary arguments
- EXPECT HALTAFTER=nnn
     --> sets "nnn" as the global/default value

 - EXPECT "some string"
     --> uses the "nnn" global/default value

 - EXPECT HALTAFTER=ttt "some string"
     --> uses the "ttt" temporary value for this EXPECT only

and:

 - SEND AFTER=nnn
     --> sets "nnn" as the global/default value

 - SEND "some string"
     --> uses the "nnn" global/default value

 - SEND AFTER=ttt "some string"
     --> uses the "ttt" temporary value for this SEND only

(and similarly for the SEND DELAY value).
2017-10-16 13:10:10 -07:00
Mark Pizzolato
247bd8d534 SCP: Avoid potential double freeing of memory during RESTORE operations
Fix problem reported in #484
2017-10-10 17:36:36 -07:00
Mark Pizzolato
c8a420ad48 SCP: Change command argument processing of %% and \% to be consistent.
%% now inserts a bare % and \\ only means something when parsing a quoted
string argument (used by EXPECT and SEND commands).

Additionally, EXPECT and BREAK commands have action steps which will now
expand arguments as each of the actions are executed rather than when the
EXPECT or BREAK command is defined.
2017-09-16 17:05:26 -07:00
Mark Pizzolato
2574100ec5 SCP: Fix EXPECT processing to avoid comparing against old data 2017-09-13 17:02:16 -07:00
Mark Pizzolato
415b2ef1bc SCP: Fix register examine broken by prior Coverity fix. 2017-09-12 10:59:55 -07:00
Mark Pizzolato
4b16e43e3e SCP: Removing Coverity Array vs Singleton warnings 2017-09-09 14:00:08 -07:00
Mark Pizzolato
964195dd78 SCP: Fix potential infinite recursion for internal ctype routines 2017-09-04 18:04:57 -07:00
Mark Pizzolato
7af33b90b6 SCP: Fix internal ctype routines make consistent with standard routines. 2017-09-03 16:46:34 -07:00
Mark Pizzolato
0579ef7d51 SCP: Allow EXPECT HALTAFTER=n without an expect string to behave as documented 2017-09-03 13:23:50 -07:00
Mark Pizzolato
23f4c90a6d SCP: Generalized numeric switch processing 2017-09-03 09:19:20 -07:00
Mark Pizzolato
ea898b24bd SCP: Add SET <dev> BINARY as an alternate radix option for all devices 2017-08-31 17:45:10 -07:00
Mark Pizzolato
ebf9489b59 SCP: Fixed Coverity issue for sim_debug arguments 2017-08-28 10:19:29 -07:00
Mark Pizzolato
245818d348 SCP: Added extended radix options (-2, -8, -10 and -16) for EXAMINE and DEPOSIT 2017-08-25 15:48:11 -07:00
Mark Pizzolato
e106d05550 SCP: Add support to dynamically load libreadline7 2017-08-14 19:15:12 -07:00
Mark Pizzolato
e39965a9f6 SCP: Add support for unsigned int parsing (t_value) without a range limit 2017-07-31 22:11:44 -07:00
Mark Pizzolato
b15f753adc SCP: Add support for operation when stdin isn't a tty
Also enhanced error messages for startup errors.
2017-07-31 22:10:15 -07:00
Mark Pizzolato
9c930092a4 SCP: Add insertion symbol UTIME for Unix time (seconds since 1/1/1970) 2017-06-26 11:52:07 -07:00
Mark Pizzolato
c8ab527f4c SCP: Add event debugging support for CPU device
Simulators which don't have detailed debugging available on their default
device (usually CPU), automatically have the event debugging options
available.  Simulators which have CPU device debugging will have to add
the SIM_DBG_EVENT, SIM_DBG_ACTIVATE and SIM_DBG_AIO_QUEUE to
their debug option list to provide this detailed debugging.
2017-06-24 18:36:24 -07:00
Mark Pizzolato
1ad8752693 SCP: Added HELP DO VARIABLE_INSERTION 2017-06-23 17:44:50 -07:00
Mark Pizzolato
d9e7afc92f SCP: Fix Coverity flagged issues 2017-06-13 04:32:18 -07:00
Mark Pizzolato
c470d1e5e2 SCP: Allow the presence of DEVICE DEBTAB array to imply the DEV_DEBUG flag 2017-06-07 18:56:06 -07:00
Mark Pizzolato
c389573c91 SCP: Avoid output to log during DEPOSIT command 2017-06-05 02:41:39 -07:00
Mark Pizzolato
df627b0cb1 SCP: Cleanup output produced by SHOW CONSOLE command 2017-05-27 20:25:50 -07:00
Mark Pizzolato
cb7c739b15 SCP: Add file exist test to IF command 2017-05-09 00:21:48 -07:00
Mark Pizzolato
2c6c8f4ef8 SCP: Always invoke strlcpy, strlcat, strcasecmp and strcasencmp vs sim_ forms 2017-05-07 19:19:55 -07:00
Mark Pizzolato
af54a5c8fd SCP: Fix out of scope memory reference in SET ENV -P "Prompt" EnvVar=Default 2017-05-01 08:11:36 -07:00
Mark Pizzolato
7ae5015610 SCP: Provide a way to gather input from a user into an environment variable
SET ENV -P "Prompt String" EnvVar=Default
2017-04-30 09:44:37 -07:00
Mark Pizzolato
168d0d9c47 SCP: add generic length limted and case independent string for all platforms 2017-04-22 21:28:48 -07:00
Mark Pizzolato
6ff3eeac80 SCP: Compiler suggested cleanup 2017-04-10 10:47:42 -07:00
Mark Pizzolato
7317645dd7 SCP: Make COPY command more robust 2017-04-07 14:35:04 -07:00
Mark Pizzolato
00f6cd59a2 SCP: Make sure that SCPE_OK isn't interpreted as error in sim_messagef
Error status returns cause the line in a DO file to be displayed.  This
should only happen for non SCPE_OK status.
2017-04-03 12:56:48 -07:00
Mark Pizzolato
9b2ff7e371 SCP: Add COPY/CP command 2017-04-03 08:26:25 -07:00