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