diff options
author | tv <tv> | 1998-08-12 22:44:31 +0000 |
---|---|---|
committer | tv <tv> | 1998-08-12 22:44:31 +0000 |
commit | f4fd168578564d9a02431173ee8e5d3d72ba9fc7 (patch) | |
tree | 7e6f01bff81a7e30a7a7e3155abcca672719f2aa /emulators/simh/patches | |
parent | c7e96d22c760868476b7a0128d0ceb3a40dad2c6 (diff) | |
download | pkgsrc-f4fd168578564d9a02431173ee8e5d3d72ba9fc7.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-aa | 27 |
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 */ |