Crash in initialization code for PTC graphic library in GO32V2 platform
Original Reporter info from Mantis: laaca@seznam.cz
-
Reporter name: Ladislav Lacina
Original Reporter info from Mantis: laaca@seznam.cz
- Reporter name: Ladislav Lacina
Description:
Any program using DOS version of PTC library crashes in startup.
Steps to reproduce:
Even minimal program crashes with GPF 216:
------------------------------
uses PTC;
begin
writeln('Hello');
end.
Additional information:
After investigation I found that the problem is in the \packages\ptc\src\dos\timeunit\timeunit.pp
Bug is in the _CPU procedure.
In the code are used instructions PUSHF, POPF, PUSHA and POPA.
They must be replaced into PUSHFD, POPFD, PUSHAD, POPAD
After this fix all problem disappears and everything works again.
In the attachment i send the patched file.
Mantis conversion info:
- Mantis ID: 31645
- OS: GO32V2
- Platform: GO32V2
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 35752 (#f218076c)