Commit graph

4121 commits

Author SHA1 Message Date
Bob Supnik
b85112a400 PDP1: Generalized PTR EOL and EOF handling 2020-05-29 09:14:16 -07:00
Larry Baker
3d40da5539 makefile: Add option to explicitly build without SDL2 video: NOVIDEO=1 2020-05-28 17:02:40 -07:00
Mark Pizzolato
0f992e1db7 VIDEO: Remove support for libSDL (prior to libSDL2)
All interesting simh host platforms have long supported libSDL2
functionality which wasn't the case when sim_video was initially
implemented.  The mixed API set significantly complicates maintaining
and extending sim_video, hence this explicit effort to remove
the vestiges  of the old libSDL API.
2020-05-28 11:40:35 -07:00
Peter Schorn
f8a1e56637 AltairZ80: Improved resource mapping diagnostics. 2020-05-27 10:30:47 +02:00
Mark Pizzolato
b9297e185f TAPE: Fix ANSI EOF1 to correctly indicate the block count
- when the file ends on a block boundary, the block count was
  off by one.
- always use the max_record_size in ANSI labels independent of
  the ansi-type.
2020-05-26 09:47:10 -07:00
Mark Pizzolato
f519513f50 SCP, HP2100, HP3000, I650: Move one time initialization activities to cpu_reset
The paradigm of using a "weak" linker reference to find what was
previously the vm_init_routine() doesn't work reliably on all compile
environments supported by the simulators.  This has been reported
in #794 and it came up again in #862.  This change assures that
it will not come up again AND it reliably solves the problem with
Visual Studio compilers (and linker) that randomly chooses whether
to have the desired effect or not.

Of the 82 simulators which are currently part of simh, only these
three used the sim_vm_init() interface, so removing it had relatively
minor impact.
2020-05-26 06:25:01 -07:00
Mark Pizzolato
6b5d3d0c7e GITHUB: Revise issue template to specifically request the make output 2020-05-25 10:27:08 -07:00
Mark Pizzolato
03a6d69c8d SCP: Assure that STEP is only allowed in MASTER mode remote console connections
The STEP command was inadvertently allowed to be parsed in non-master
mode connections, but it didn't actually work.  It has now been removed
from the generic remote console command table.

This was illuminated as of the discussion in #854
2020-05-25 09:55:24 -07:00
Mark Pizzolato
5b793198c6 SCP: Flush stdout after writing command prompt
Possibly address problem discussed in #861
2020-05-24 16:11:01 -07:00
Peter Schorn
6a816001ef AltairZ80: Minor cleanup 2020-05-24 09:36:10 +02:00
Peter Schorn
cb23bca33a AltairZ80: Update m68kasm.y.txt 2020-05-23 19:06:21 +02:00
Peter Schorn
cf1e609275 AltairZ80: Using Bison 3.6.2 to generate m68kasm.c 2020-05-23 19:04:26 +02:00
Patrick Linstruth
5dc8898e0c ALTAIRZ80: Add JADEDD Jade Double D disk controller device 2020-05-23 07:30:43 -07:00
Mark Pizzolato
50ad9fbb82 SCP: Fix the allowed_remote_cmds to also list STEP before SAMPLEOUT
As discussed in #854
2020-05-22 15:54:38 -07:00
Mark Pizzolato
5ec4b3f2f4 SCP: Fix remote console command table ordering to have STEP near the beginning
This allowed user entered S to match the SAMPLEOUT command instead
of STEP.  That then identified a bug in the intended socket output
processing to attempt to be written to the undefined debug file.

As discussed in #854
2020-05-22 10:12:11 -07:00
Mark Pizzolato
ca51776ec7 SCP: Enable global message suppression by library code
The global variable sim_show_message as 0 will suppress message
output which may be needed from time to time by library code.
2020-05-22 10:11:40 -07:00
Mark Pizzolato
a4228438b5 SCSI: Properly reference bits in UNIT->flags for disk and tape 2020-05-22 10:11:11 -07:00
Mark Pizzolato
6fdd917ee8 SCP: Properly handle MTAB entries with MTAB_QUOTE values 2020-05-18 16:41:21 -07:00
Mark Pizzolato
09f18ec2ba VAX: Add idle support for VMS V5.0 and V5.1
As discussed in #853
2020-05-18 06:26:10 -07:00
Mark Pizzolato
d24fa1e5d2 PDP11, VAX: Properly autosize RQ disks based on drive type 2020-05-18 06:25:48 -07:00
Mark Pizzolato
4757632f9e SCP: Enable line wrapping at EOL on Windows console (Peter Schorn)
Simulators running directly in a Windows console session, that don't
have the console traffic redirected to a telnet session via
   SET CONSOLE TELNET=nnn
now behave similarly to the default behavior experienced on
non-windows hosts where the terminal session usually defaults to
wrapping at EOL.  Users who want more specific control of this behavior
can run their console via a telnet session with a terminal emulator that
lets them explicitly set these features in the emulator.

This change reintroduces this behavior which got lost when windows
support for ANSI (VT100) escape sequences were added to the console
sessions.
2020-05-16 03:57:36 -07:00
Mark Pizzolato
4443789fd0 TAPE: Cleanup wording in comments 2020-05-16 03:20:43 -07:00
Roberto Sancho Villa
08027162ca I650: Update IBM 650 simulator to Release 4
- Integration with updated sim_card API
- Addition of MT (Mag Tape) device
- Addition of DSK (Disk) device
- Build time simulator test
2020-05-15 05:57:01 -07:00
Mark Pizzolato
275cc417fe SCP: Add HELP info about debugging DO processing and expression evaluation
- Removed incorrect addition of SCP related DEBUG flags to the CPU
  DEVICE debug options.
2020-05-15 05:14:50 -07:00
Peter Schorn
02fc4b0e3c AltairZ80: Added symbolic assembler for M68K CPU including bison/yacc source. 2020-05-15 09:45:58 +02:00
Mark Pizzolato
345b87034a SCP: Document -Q for DELETE/RM command and suppress "file not found" with -Q 2020-05-13 05:48:04 -07:00
Mark Pizzolato
20aa661c43 SCP: Parse switches on file operation commands
DELETE, DIR, MKDIR, TYPE, COPY, etc.

This allows -Q to suppress output if desired.
2020-05-12 08:25:10 -07:00
Mark Pizzolato
8edb55ac87 SCP: During expression evaluation, make lookups (REG, Env) consistent
Both REGister and Environment Variable name lookup now do a precise
name lookup with the presented name followed by an upcased name
lookup.
2020-05-12 03:57:22 -07:00
Mark Pizzolato
c3fef9befc SCP: Fix expression evaluation of empty string to numeric value
Previously, numeric values incorrectly had a string representation of
"".  This allowed arbitrary equality comparisons to succeed in unexpected
ways.

Reported by Robert Sancho Villas
2020-05-11 16:23:26 -07:00
Mark Pizzolato
781c73fe21 SCP: Fix != comparison in memory search compare logic (Roberto Sancho Villa) 2020-05-11 06:53:27 -07:00
Mark Pizzolato
8c57893675 ETHER: Avoid potential compiler warning about version string overrun
gcc 9.3.0 on Ubuntu 20.04 somehow knows that the length of the
string pcap_lib_version() returns can be 256 bytes long.  It then
generates a warning about truncation potential.  The problematic
code path will only be executed on Windows with an old version of
Npcap, but the compiler can't know that.  Make the local buffer
larger to silence the resulting noise.
2020-05-08 05:28:52 -07:00
Mark Pizzolato
918f7704da DOC: Update sim_doc.doc to start with how to run a simulator 2020-05-07 12:44:08 -07:00
Bill Beech
1513d6ee66 SWTP6800: Fix typo in the DAA instruction 2020-05-06 14:25:46 -07:00
Mark Pizzolato
661c1059a6 PDP10: Fix spelling error in comment section 2020-05-05 13:01:39 -07:00
Mark Pizzolato
fd08552852 PDP11, PDP10, VAX: Consistent use of UNIT flag variables in RP, HK, RL, and RQ
Properly reference sim_disk provided WLK flag bit
2020-05-05 12:59:21 -07:00
Mark Pizzolato
df63d4ff9f SCP: Reject undefined device with TESTLIB command
Also remove some otherwise unused variables (assignments but never used).
2020-05-05 12:57:43 -07:00
Warner Losh
3a8472be2b
FreeBSD tweak
FreeBSD doesn't up the tap interface by default. Work around this by changing the default
2020-05-05 09:41:47 -06:00
Mark Pizzolato
b121950aba 3B2: Avoid adding disk information details to IFLOPPY disk images.
Floppy disk images are potentially used as a medium of data exchange
between some hosts and simulators and the disk information can confuse
this process.

As discussed in #847
2020-05-03 11:58:21 -07:00
Mark Pizzolato
5bec9d58dd DISK: Avoid trying to change drive type when it is already correct. 2020-05-02 13:34:26 -07:00
Mark Pizzolato
c76086bc00 3B2: Properly set drive type for IDISK device disks
As reported in #847
2020-05-02 10:32:05 -07:00
Peter Schorn
494e68fcbf AltairZ80: Documentation update and small formatting cleanup 2020-04-30 19:01:38 +02:00
Mark Pizzolato
4099330616 H316: Open LPT, PTP devices for append
This implements the principle of "least surprise", in that users won't
normally expect to start overwriting an existing file on these devices.
Real hardware didn't behave that way.  A new (empty) file can always
be created with the -N switch on the ATTACH.
2020-04-30 05:18:47 -07:00
Mark Pizzolato
323cd48244 PDP8: Open LPT, PTP devices for append
This implements the principle of "least surprise", in that users won't
normally expect to start overwriting an existing file on these devices.
Real hardware didn't behave that way.  A new (empty) file can always
be created with the -N switch on the ATTACH.
2020-04-30 05:08:29 -07:00
Mark Pizzolato
0b3e415b8e DISK: Cleanup compiler warnings 2020-04-30 02:59:30 -07:00
Patrick Linstruth
807005553b ALTAIRZ80: Add "SET CPU HISTORY" and "SHOW CPU HISTORY" for 8080/Z80 2020-04-29 20:28:33 -07:00
Mark Pizzolato
7082e212ea DISK: Avoid autosizing if file system can't be determined
Add DISKINFO command to display information about a disk container file.
2020-04-29 13:21:12 -07:00
Mark Pizzolato
aa380517fa DISK: Add support for arbitrary sector sizes in all container formats 2020-04-29 12:21:08 -07:00
Mark Pizzolato
3c081a80c1 KA10, KI10, KL10: Open LPT, PTP devices for append
This implements the principle of "least surprise", in that users won't
normally expect to start overwriting an existing file on these devices.
Real hardware didn't behave that way.  A new (empty) file can always
be created with the -N switch on the ATTACH.
2020-04-28 14:35:22 -07:00
Bill Beech
6e6706f2a4 SWTP6800: Corrected flag setting errors (Richard Brinegar) 2020-04-28 14:02:03 -07:00
Mark Pizzolato
3a38d38ce7 PDP4, PDP7, PDP9, PDP15: Open LPT, PTP devices for append
This implements the principle of "least surprise", in that users won't
normally expect to start overwriting an existing file on these devices.
Real hardware didn't behave that way.  A new (empty) file can always
be created with the -N switch on the ATTACH.
2020-04-28 07:35:09 -07:00