Commit graph

2754 commits

Author SHA1 Message Date
Mark Pizzolato
2bcb60e76f TIMER: Add external initialization option for clock calibration
Clock calibration normally takes several seconds to zero in on somewhat
accurate values for reasonable synchronization of simulated time to wall
clock time.  Often this doesn't matter one way or another.  However,
one thing which requires somewhat accurate clock calibration is the
pacing of output to serial ports on the host system.  Pacing happens
at the configured bits per second rates as long as the simulators
instruction execution rate has been reasonably calibrated with respect
to wall clock time.  A given host system will most likely simulate
instructions at the same rate from one run to the next, so running a
simulator for a little while and then examining the execution rate with
the SHOW CLOCK command can provide knowledge about the calibrated
execution rate which can be used to start a future simulator's execution
with a very good estimate of what the ultimate calibrated rate will be.
If the SHOW CLOCK shows simulator execution at 120,000,000 instructions
per second, and the simulated system has a simulated clock that runs at
60 hz, then the pre-calibrated values can be set with these commands:

    sim> DEPOSIT INT-CLOCK TICK_SIZE_0 2000000
    sim> DEPOSIT INT-CLOCK TICK_RATE_0 60
    sim> DEPOSIT INT-CLOCK INTERNAL_TICK_SIZE 12000000

The INTERNAL_TIMER runs in the background whenever the simulator
doesn't have a calibrated timer running.  It runs at 10 Hz.
2018-04-06 01:46:44 -07:00
Mark Pizzolato
95f5a1c371 TMXR: Properly display serial configuration and allow unconfigured serial ports 2018-04-05 21:14:56 -07:00
Seth Morabito
40877838ad 3b2: Silence warning in Windows build 2018-04-05 17:24:47 -07:00
Seth Morabito
a9f9b3abd1 3b2: Refactor MMU and fix two bugs
- Add "SHOW STACK" support to CPU
- An off-by-one error in checking SDT length was fixed.
- not-present co-processor R/W should not set Bus timeout bit
2018-04-05 17:12:45 -07:00
Mark Pizzolato
317e2a8e54 TIMER: make sim_activate_after use coscheduling whenever possible.
Previously, only long delays that would transition the next clock
calibration would be coscheduled unless an explicit timer was
specified to coschedule with.

This may help with the problem discussed in #508
2018-04-03 02:06:14 -07:00
Mark Pizzolato
d7b1707b45 TMXR: Properly set transmit wait time when speed changes are made.
- Display Input, Output and Connection Polling units properly.
2018-04-02 13:30:38 -07:00
Mark Pizzolato
daf0d953b1 SCP: Adjust relative debug base time to reflect GMT offset 2018-04-02 13:21:01 -07:00
Mark Pizzolato
e7e1a9cc2c VAX750: Avoid unit array overrun during TU58 init when only 1 unit exists.
As discussed in #546
2018-04-02 09:38:27 -07:00
Mark Pizzolato
a92dc610a4 alpha, pdp18b, PDP8, sigma: removed stray tabs which crept in over time. 2018-04-01 14:22:30 -07:00
Mark Pizzolato
dcf746a72a SERIAL: Add advice message when no serial ports are found in SHOW SERIAL 2018-04-01 12:37:48 -07:00
Mark Pizzolato
e7090e784e SCP: Add support to compare file contents with IF -F "file1" == "file2" 2018-03-31 23:50:37 -07:00
Seth Morabito
557dcc91e9 3b2: Fix stack bounds checking bug 2018-03-31 18:46:44 -07:00
Mark Pizzolato
b0ff29781b SCP: Add git commit time support for older git versions 2018-03-29 21:12:44 -07:00
Mark Pizzolato
6bfad051a8 I7000, B5500: Make sure card reader devices always perform read-only.file opens 2018-03-25 18:09:48 -07:00
Mark Pizzolato
0b209d2383 SCP: Allow UNIT_RO flag bit to be static when UNIT_ROABLE isn't present. 2018-03-25 18:09:07 -07:00
Mark Pizzolato
9111a1a645 Visual Studio Projects: Fix git-commit-id.h version check 2018-03-25 12:33:13 -07:00
Roberto Sancho Villa
cdfe35202b i650: New IBM 650 Simulator 2018-03-25 10:38:48 -07:00
Roberto Sancho Villa
2eb49c13b7 i650: New IBM 650 Simulator 2018-03-25 10:17:35 -07:00
Tony Nicholson
ceb54e5ff7 AltairZ80: Set conditional under CYGWIN so the SIMH device works
Under CYGWIN the conditional tests in the altairz80_sio.c source file for the
SIMH pseudo device's getHostsFilenamesCmd and resetSIMHInterfaceCmd
functions need to have UNIX_PLATFORM set to 1 - otherwise they do nothing!
With this fix, the HDIR host command from CP/M now displays a list of files
in host system's current directory under CYGWIN.
2018-03-23 15:25:59 -07:00
Mark Pizzolato
94727159e8 Visual Studio Projects: Cleanup Windows-Binaries procedure for new commit id
- New Commit-Id with Commit-Time
- Properly execute when the Win32-Development-Binaries needs to be cloned
- Properly limit parallel builds if the local system has more than 8 Threads
2018-03-20 22:29:02 -07:00
Mark Pizzolato
3f7f92682d TMXR, SERIAL: Properly set serial port speed on attach. 2018-03-20 20:52:26 -07:00
Seth Morabito
054e8e56c1 3b2: Fix compiler warnings 2018-03-20 17:42:37 -07:00
Mark Pizzolato
d0004b20aa SCP: Compiler const warning cleanup 2018-03-20 13:01:18 -07:00
Mark Pizzolato
4894b84ebd PUNCH: Add new file switch information to punch help 2018-03-20 12:50:43 -07:00
Mark Pizzolato
35fca60761 Visual Studio Projects: Update Windows-Binaries procedure for new commit id 2018-03-20 01:21:41 -07:00
Mark Pizzolato
dd382f1beb Visual Studio Projects: Assure commit id is correct when git hooks change
When the git hooks have changed and git isn't in the path, the correct git
commit id can't be determined and thus be available to be included in
the build.  This change announces that fact and stops a build.
2018-03-20 01:07:14 -07:00
Mark Pizzolato
07229ef10d Visual Studio Projects: Properly populate .git-commit-id after git clone
This only happens if git is installed locally and available in the current
path when Visual Studio executes.  Whether git is in the path is an
installation option when git for Windows is installed.

Otherwise, proper results should be available after subsequent
activity on the local repository.  Any build will install the git hooks
that properly populate .git-commit-id when any changes are made
to the local repo.
2018-03-19 19:49:42 -07:00
Mark Pizzolato
a2cab25e9e makefile: Properly determine the git commit time when simh is a submodule 2018-03-19 19:42:20 -07:00
Mark Pizzolato
e7a0c38ea3 makefile, travis: Update to advise install of HomeBrew sdl2_ttf package 2018-03-19 12:43:47 -07:00
Mark Pizzolato
2051422ee2 SCP: Remove redundant public SCP API declarations 2018-03-19 11:11:55 -07:00
Mark Pizzolato
37195c06a7 makefile: Add messages about SDL TTF support when needed 2018-03-19 11:11:17 -07:00
Lars Brinkhoff
567f703131 Install prerequisite libraries for Travis CI. 2018-03-19 18:58:38 +01:00
Seth Morabito
8f87b6e3da 3b2: Fix fprint_sym_m 2018-03-15 16:51:10 -07:00
Lars Brinkhoff
2e99cd0311 SCP: continuous build in Travis CI. 2018-03-15 15:19:40 +01:00
Mark Pizzolato
f5ca960b82 TMXR: Disable ATTACH speed for devices which program port speed 2018-03-13 02:14:06 -07:00
Mark Pizzolato
62cea35d52 README: Fix typo 2018-03-11 22:23:08 -07:00
Mark Pizzolato
36651ea450 README: Fix formatting and one broken TOC link 2018-03-11 21:09:54 -07:00
Mark Pizzolato
66a1f31dbd PDP10, PDP4, PDP7, PDP9, PDP15: CONST compatibility with 3.10 2018-03-10 00:18:27 -08:00
Mark Pizzolato
48f824b54b PDP1: CONST compatibility with 3.10 2018-03-09 18:53:33 -08:00
Mark Pizzolato
906ea892cf alpha: CONST compatibility with 3.10 2018-03-09 16:00:56 -08:00
Mark Pizzolato
b7b1f427d0 I1401, I7094, ID16, ID32, NOVA, SDS, SIGMA: CONST compatibility with 3.10 2018-03-09 15:55:22 -08:00
Bob Supnik
645ea28d35 PDP10: Read tape mark must set Massbus EXC (TRE) 2018-03-09 14:23:00 -08:00
Bob Supnik
e270da1530 GRI, PDP11, PDP8, VAX: Misc formatting and typo cleanups 2018-03-09 14:04:19 -08:00
Mark Pizzolato
c8ca4161fa SCP: Add git commit time to commit id version information 2018-03-09 02:58:40 -08:00
Mark Pizzolato
4cbf4e4144 SCP: Fix IF conditional expression parsing to not require spaces around operator
As reported in #536
2018-03-08 12:12:02 -08:00
Mark Pizzolato
8e72d32a09 I1620: Add a 3.10 compatibility CONST declaration 2018-03-08 04:24:25 -08:00
Bob Supnik
e7a0296584 I1620: Updated Simulator
- added deferred IO and RELEASE button simulation
- added SET TTY 1DIGIT
- added SET LPT NOFF
- numerous fixes from Tom McBride, Bob Armstrong, and Dave Wise
2018-03-08 03:56:26 -08:00
Mark Pizzolato
72dde6660c SCP: Change revision description from Beta to Current 2018-03-07 23:01:13 -08:00
Mark Pizzolato
bf348c89b3 ETHER: Generalized build environments that work correctly 2018-03-07 22:32:33 -08:00
Mark Pizzolato
669d07ba3e SCP: Fix compile WIN32 MinGW warnings 2018-03-07 13:20:14 -08:00