summaryrefslogtreecommitdiff
path: root/emulators/simh/patches
diff options
context:
space:
mode:
authortv <tv>1998-08-12 22:44:31 +0000
committertv <tv>1998-08-12 22:44:31 +0000
commit5c7796f66cce927ed07c54b066f6a47056e1534b (patch)
tree7e6f01bff81a7e30a7a7e3155abcca672719f2aa /emulators/simh/patches
parent1fbe7ebd3dd2f27dd9c74b38c287f4d4850ac38f (diff)
downloadpkgsrc-5c7796f66cce927ed07c54b066f6a47056e1534b.tar.gz
A pkg for Bob Supnik's simh processor simulator. Can simulate the IBM
1401, Nova, and PDP-{1,4,5,7,8,9,11,15} on both big and little endian processors. (Can run the free binary distribution of V6 and V7.)
Diffstat (limited to 'emulators/simh/patches')
-rw-r--r--emulators/simh/patches/patch-aa27
1 files changed, 27 insertions, 0 deletions
diff --git a/emulators/simh/patches/patch-aa b/emulators/simh/patches/patch-aa
new file mode 100644
index 00000000000..d7d82dc3698
--- /dev/null
+++ b/emulators/simh/patches/patch-aa
@@ -0,0 +1,27 @@
+--- scp.c.orig Wed Aug 12 18:21:13 1998
++++ scp.c Wed Aug 12 18:24:25 1998
+@@ -240,6 +240,7 @@
+
+ do { printf ("sim> "); /* prompt */
+ cptr = read_line (cbuf, CBUFSIZE, stdin); /* read command line */
++ if (cptr == NULL) break; /* exit on eof */
+ stat = SCPE_UNK;
+ if (cptr == NULL) continue; /* ignore EOF */
+ if (*cptr == 0) continue; /* ignore blank */
+@@ -254,6 +255,7 @@
+
+ detach_all (0);
+ ttclose ();
++puts("");
+ return 0;
+ }
+
+@@ -879,7 +881,7 @@
+ (UNIT_ATT + UNIT_SEQ))
+ fseek (uptr -> fileref, uptr -> pos, SEEK_SET); } }
+ stop_cpu = 0;
+-if ((int) signal (SIGINT, int_handler) == -1) { /* set WRU */
++if (signal (SIGINT, int_handler) == (void *)-1) { /* set WRU */
+ printf ("Simulator interrupt handler setup failed\n");
+ return SCPE_OK; }
+ if (ttrunstate () != SCPE_OK) { /* set console */