mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 17:48:01 +02:00
+ IO-Error and Overflow now print address in hex
This commit is contained in:
parent
a60397c5d1
commit
91a581342c
@ -564,8 +564,12 @@ begin
|
||||
l:=ioresult;
|
||||
if l<>0 then
|
||||
begin
|
||||
{$ifndef RTLLITE}
|
||||
writeln('IO-Error ',l,' at 0x',HexStr(addr,8));
|
||||
{$else}
|
||||
writeln('IO-Error ',l,' at ',addr);
|
||||
halt(l);
|
||||
{$endif}
|
||||
halt(byte(l));
|
||||
end;
|
||||
asm
|
||||
popal
|
||||
@ -582,7 +586,11 @@ begin
|
||||
movl 4(%ebp),%edi
|
||||
movl %edi,addr
|
||||
end;
|
||||
{$ifndef RTLLITE}
|
||||
writeln('Overflow at 0x',HexStr(addr,8));
|
||||
{$else}
|
||||
writeln('Overflow at ',addr);
|
||||
{$endif}
|
||||
RunError(215);
|
||||
end;
|
||||
|
||||
@ -713,24 +721,16 @@ end;
|
||||
|
||||
|
||||
{$I386_ATT} {can be removed}
|
||||
|
||||
Function Random(L: LongInt): LongInt;assembler;
|
||||
asm
|
||||
movl $134775813,%eax
|
||||
mull RandSeed
|
||||
incl %eax
|
||||
movl %eax,RandSeed
|
||||
mull 4(%esp)
|
||||
movl %edx,%eax
|
||||
end;
|
||||
|
||||
{$I386_DIRECT} {can be removed}
|
||||
|
||||
{$ASMMODE ATT}
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.14 1998-07-01 15:29:58 peter
|
||||
Revision 1.15 1998-07-02 12:19:32 carl
|
||||
+ IO-Error and Overflow now print address in hex
|
||||
|
||||
Revision 1.14 1998/07/01 15:29:58 peter
|
||||
* better readln/writeln
|
||||
|
||||
Revision 1.13 1998/06/26 08:20:57 daniel
|
||||
|
Loading…
Reference in New Issue
Block a user