[Simh] ibm1130 bug report

Andru Luvisi luvisi at andru.sonoma.edu
Sat Apr 10 17:34:43 EDT 2004


I was getting seg faults in strange places while trying to run the ibm1130
emulator.  It turns out that values greater than 127 in the translation
tables were being treated as negative.  Here is a proposed patch.

Andru


--- Ibm1130/ibm1130_cr.c.org    Sat Apr 10 14:09:38 2004
+++ Ibm1130/ibm1130_cr.c        Sat Apr 10 14:09:59 2004
@@ -454,7 +454,7 @@

 typedef struct {
        uint16 hollerith;
-       char    ascii;
+       unsigned char   ascii;
 } CPCODE;

 static CPCODE cardcode_029[] =





More information about the Simh mailing list