Browse Source

+ Io-Error and overflow print erroraddr in hex now

carl 27 years ago
parent
commit
7632ce3279
1 changed files with 6 additions and 14 deletions
  1. 6 14
      rtl/m68k/m68k.inc

+ 6 - 14
rtl/m68k/m68k.inc

@@ -377,7 +377,7 @@
          l:=ioresult;
          l:=ioresult;
          if l<>0 then
          if l<>0 then
            begin
            begin
-              writeln('IO-Error ',l,' at ',addr);
+              writeln('IO-Error ',l,' at 0x',HexStr(addr,8));
               halt(byte(l));
               halt(byte(l));
            end;
            end;
          asm
          asm
@@ -397,7 +397,7 @@
             move.l 4(a6),d0
             move.l 4(a6),d0
             move.l d0,addr
             move.l d0,addr
          end;
          end;
-         writeln('Overflow at ',addr);
+         writeln('Overflow at 0x',HexStr(addr,8));
          RunError(215);
          RunError(215);
       end;
       end;
 
 
@@ -628,13 +628,6 @@
      end ['d0','d1','a0'];
      end ['d0','d1','a0'];
    end;
    end;
 
 
-{$ifndef ordintern}
-    {!!!!!! not very fast, but easy. }
-    function ord(b : boolean) : byte;
-      begin
-         ord:=byte(b);
-      end;
-{$endif ordintern}
 
 
     function abs(l : longint) : longint;
     function abs(l : longint) : longint;
 
 
@@ -664,11 +657,7 @@
          sqr := l*l;
          sqr := l*l;
       end;
       end;
 
 
-{$ifndef str_intern }
-    procedure str(l : longint;var s : string);
-{$else str_intern }
     procedure int_str(l : longint;var s : string);
     procedure int_str(l : longint;var s : string);
-{$endif str_intern }
 
 
       var
       var
         value: longint;
         value: longint;
@@ -757,7 +746,10 @@ XDEF RE_BOUNDS_CHECK
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.6  1998-07-01 14:25:57  carl
+  Revision 1.7  1998-07-02 12:20:58  carl
+    + Io-Error and overflow print erroraddr in hex now
+
+  Revision 1.6  1998/07/01 14:25:57  carl
     * strconcat was copying one byte too much
     * strconcat was copying one byte too much
     * strcopy bugfix was using signed comparison
     * strcopy bugfix was using signed comparison
     + STRCOPY uses register calling conventions
     + STRCOPY uses register calling conventions