1
0
mirror of https://github.com/simh/simh.git synced 2026-01-29 13:11:26 +00:00
Commit Graph

967 Commits

Author SHA1 Message Date
Mark Pizzolato
a9b3369657 SCP: Useful minor updates
- Enhance file name extension matching logic to allow for file names
  that are enclosed in quotes ('' or "").
- Normalize exported environment variables that describe the Git
  Commit Id.
- Minor update to help for the ZAPTYPE command.
2026-01-02 12:51:01 -10:00
Mark Pizzolato
c31ea266e2 ETHER: Add support for Omni OS and Open Indiana plus bridged network support
- Some versions of Omni OS no longer include sys/filio.h in sys/ioctl.h
- Add more robust support for locating OS tools in scp.c
- SHOW VERSION output displays SunOS host system specific info

Fix #1238
2025-12-14 13:43:34 -10:00
Mark Pizzolato
657b75883e SCP: Clarify language in "HELP <device> SET" output SET <dev> DEBUG commands 2025-12-03 19:38:09 -10:00
Mark Pizzolato
5c68a17c13 SCP: Provide better support for SHOW devices with only one unit
- Cleaner display of SHOW DEBUG for devices with UNIT level debugging
2025-12-02 08:14:22 -10:00
Mark Pizzolato
d6a53f1c06 SCP: Cleanup allocated memory assignments for C++ compatibility 2025-10-24 08:19:42 -10:00
Mark Pizzolato
6825288a94 SCP: Extend hierarchical help for device type attach language insertion
This allows all devices across all simulators to avoid having identical
attach language which may have host platform specific language.
2025-10-10 17:46:19 -10:00
Mark Pizzolato
d569493baf SCP: Minimize simulator startup time on Windows when WMIC isn't available
Optimize SHOW VERSION processing to only dig up unchanging external things
the first time show_version() is invoked by saving the original results.
2025-10-03 14:57:30 -10:00
Mark Pizzolato
ca229cc207 SCP: Gather Windows Platform details by alternate means when WMIC is gone
SIMH SHOW VERSION output displays as much potentially useful information
about both the currently running simulator and the host platform it is running
on.  On Windows host systems, some of this information has been gathered
from the output of the WMIC command which is deprecated and is already
being removed from new and future systems.

This change leverages WMIC when it is available, and attempts to gather the
interesting information from elsewhere when it is not.

As reported in #1227
2025-10-01 11:42:25 -10:00
Mark Pizzolato
43bc996cdb SCP: Expose memory file functions to SCP private code 2025-09-28 08:15:31 -10:00
Mark Pizzolato
b838d94282 SCP: Fix output produced when EXAMINE an array register
This problem was a latent bug introduced when summarized array register
output was added back in 2013 or 2018.

This fixes the problem reported in https://github.com/open-simh/simh/issues/499
2025-09-25 09:40:19 -10:00
Mark Pizzolato
ea37ca9ff5 SCP: Add a -F option to SET <dev> DISABLE command to force detach and cancel 2025-09-01 09:55:30 -10:00
Mark Pizzolato
716b8117e1 SCP: Add Regex comparison condition to the IF command 2025-08-30 20:09:08 -10:00
Mark Pizzolato
caea0c0970 ETHER: Add vmnet support for macOS Catalina 10.15.7 through Big Sur 11.7.10 2025-08-14 08:55:49 -10:00
Mark Pizzolato
9fbd3e222e SCP: Search for startup simh.ini in reasonable platform specific locations 2025-08-14 08:42:44 -10:00
John D. Bruner
729502aa9d SCP: treat SIGTERM and SIGHUP as equivalent 2025-05-09 19:55:09 -07:00
Mark Pizzolato
6ae1467470 SCP: Assure that sim_async_lock is always a recursive lock
This is needed for both the Intrinsic and basic pthreads cases.
2025-03-22 08:12:01 -10:00
Mark Pizzolato
33166dfcdf SCP: Fix potential multi threaded simulator activities when flushing log data
Avoid the potential by properly leveraging the range that the
recursive mutex which already properly serializes separate activities
to the debug log file.
2025-03-21 09:36:36 -10:00
Mark Pizzolato
fed5342f44 SCP: CONSOLE Cleanup and DBGSIGNAL help
- Add HELP language for SET CONSOLE DBGSIGNAL|NODBGSIGNAL.
- Remove obsolete sim_os_poll_kbd_ready platform specific routines
  which were only used with the never functional asynchronous TMXR
  code which has been otherwise removed everywhere else.
- Cleanup DBGSIGNAL related code comments

-
2025-03-20 17:12:50 -10:00
Mark Pizzolato
bf83567e61 SCP: Add debugging support for shutdown activities 2025-03-18 17:14:02 -10:00
Mark Pizzolato
ca8f3f096e SCP: Add SIM_HOST_CORE_COUNT and SIM_HOST_MAX_THREADS environment variables
Scripts (or internal test code) can use this information as needed.
2024-09-06 15:17:50 -10:00
Mark Pizzolato
cbd8bd8a0a SCP : Log various initialization steps with DebugInit enabled
Removed previously added DEPOSIT ALL 0 in precalibrate routine.
That DEPOSIT was added to explicitly restore memory to 0's at simulator
startup, but the several second cost of executing that slowed down
startup of any simulator which had precalibration support.  Anyone who
explicitly cares to have zeroed memory on startup should include such a
command in their own simulator configuration.
2024-07-16 12:05:41 -10:00
Peter Schorn
c7df248f09 SIMH: Fix spelling errors in comments and strings 2024-07-16 12:04:53 -10:00
Mark Pizzolato
32d6b09c8e SCP: Allow glyph parsing to specify a delimiter while whitespace isn't one 2024-07-11 15:42:41 -10:00
Mark Pizzolato
746981b8a0 SCP: Correct restore of disk containers with sim_disk drive type indicated 2024-07-10 12:23:25 -10:00
Mark Pizzolato
ee7806f20e SCP: Add "IF DEVICE <devicename>" to test the existence/enabled-state of device 2024-07-04 18:11:15 -10:00
Mark Pizzolato
cc2a00364f SCP: Avoid extra newline output in full SHOW VERSION output 2024-06-21 11:36:08 -10:00
Mark Pizzolato
62d7e94266 TIMER: Properly interpret input while setting throttle mode
Allow: n                execute n instructions/cycles per second
           nK              execute n thousand instructions/cycles per second
           nM             execute n million instructions/cycles per second
           n%             occupy x percent of the host CPU capacity
           n/t             sleep for t milliseconds after executing x
                             instructions/cycles
           n{K|M}/t    sleep for t milliseconds after executing x
                             thousand or million instructions/cycles
2024-06-05 11:13:35 -10:00
J. David Bryan
b24bf74f29 SCP: Report optional VM specific release after optional delta in SHOW VERSION
From simh v3.12-5 changes
2024-05-21 14:22:41 -10:00
Mark Pizzolato
7ca7f0fb3a SCP: Tolerate quoted LOG(, DEBUG, etc.) filenames which can have spaces 2024-05-03 10:19:46 -10:00
Mark Pizzolato
6767c1a9d5 SCP: Allow TYPE command output to be terminated by SIGINT 2024-04-28 14:09:27 -10:00
Mark Pizzolato
c16e379b73 SCP: Cleanup SET ASYNC/NOASYNC status message to use sim_messagef 2024-04-18 16:36:43 -10:00
Mark Pizzolato
f2344dfddc SCP: Add Linux and macOS version to SHOW VERSION output 2024-04-16 18:25:20 -10:00
Mark Pizzolato
b404ccd050 SCP: Make debug timestamps consistent when in NOCALIBRATE mode 2024-04-04 09:56:18 -10:00
B. Scott Michel
f7dfefee72 SCP: sprint_val comma bug
- Fix comma separator code segmentation fault: "ndigit - 3" can become a
  very large unsigned number for ndigit < 3.
2024-03-21 13:55:52 -10:00
Mark Pizzolato
0ff0d0f8a3 SCP: Enhance EXAMINE address range output
1 - Summarize repeated memory contents so that the memory range with a
      given value only emits 2 lines of output
2 - Allow ^C (SIGINT) to potentially abort long running EXAMINE output
2024-03-20 13:46:14 -10:00
Mark Pizzolato
f4089b330e SCP: Add host processor core and thread info to SHOW VERSION output 2024-01-14 13:04:31 -10:00
Mark Pizzolato
fca6bace44 SCP: Add asynchronous and processed event counters
- Add abort if sim_aio_activate is called when running with ASYNC disabled
2024-01-09 06:07:33 -10:00
Mark Pizzolato
4dfb3508bf ETHER: Make sure SET NOASYNC is effective for Ethernet devices
- Make sure that asynchronous mode can't be changed if devices using
   sim_ether are already attached.
- Add missing DEV_ETHER type flag for the only sim_ether using device
   that didn't already have it.
2024-01-06 14:55:06 -10:00
Mark Pizzolato
54f55777f5 SCP: Minor message text and formatting cleanup 2024-01-05 09:50:48 -10:00
Mark Pizzolato
0a79762388 SCP: Remove remnants of previously removed async TMXR pieces 2024-01-05 09:09:22 -10:00
Mark Pizzolato
197ff62587 SCP: Leverage a memory file while producing examine output 2023-12-06 09:49:05 -10:00
Mark Pizzolato
810ec6300d SCP: Add visible countdown for the SLEEP command 2023-11-16 09:47:03 -10:00
Mark Pizzolato
65d0ae2a44 SCP: Properly write debug output for commands run at the sim> prompt
- Without regard to whether the circular buffer data is otherwise in
   use while instructions are executing.
- When a circular debug buffer is in use, avoid writing out the contents
  with the periodic open file flushes and only do so on returns to the
  sim> prompt and when debug is closed
2023-11-12 12:49:07 -10:00
Mark Pizzolato
4b8902cd06 SCP: When debugging, add output of EXAMINE commands to debug data 2023-11-12 10:04:28 -10:00
Mark Pizzolato
67ec597696 SCP: Add support for REGisters containing double values 2023-11-12 10:04:28 -10:00
Mark Pizzolato
985137cbff SCP: Avoid reading excess data when putting register values into a string 2023-10-06 13:40:11 -10:00
Tony Lawrence
a6ad4d0acb SCP: Fix correctly loading simh.ini when user HOME not defined 2023-10-03 09:07:57 -10:00
Mark Pizzolato
d7560cf3e4 SCP: Provide more context when command errors are found 2023-09-25 14:30:14 -10:00
Mark Pizzolato
40aa90f732 SCP: Fix source content address while issuing error message 2023-09-19 06:25:59 -10:00
Mark Pizzolato
c8b03944a5 SCP: Fix Invalid register message text 2023-09-19 03:09:11 -10:00