mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +02:00
fsub check enhanced
This commit is contained in:
parent
630f9266bd
commit
cc47536e71
@ -64,6 +64,16 @@ begin
|
||||
fstp %st
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
fldl y
|
||||
fldl x
|
||||
fdiv %st,%st(1)
|
||||
fstp %st
|
||||
fstpl z
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
|
@ -59,6 +59,16 @@ begin
|
||||
fstp %st
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
fldl y
|
||||
fldl x
|
||||
fdiv %st,%st(1)
|
||||
fstp %st
|
||||
fstpl z
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
|
@ -53,6 +53,16 @@ begin
|
||||
fstp %st
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
fldl y
|
||||
fldl x
|
||||
fdiv %st,%st(1)
|
||||
fstp %st
|
||||
fstpl z
|
||||
end;
|
||||
Writeln('ATT result of 4/2=',z:0:2);
|
||||
if z <> 2.0 then
|
||||
Halt(1);
|
||||
asm
|
||||
|
Loading…
Reference in New Issue
Block a user