Go Back   FileForums > Game Backup > PC Games

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21-01-2003, 06:20
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,838
Thanks: 21
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Hi Rincewind, yeah, yeah, it's just that that only Borland _Pascal_ programs have this problem, you know...

In short, when you use the CRT unit in your program, the initialization routine of the CRT unit computes a delay value from the actual CPU speed so that the Delay() routine will delay program execution for the same time on all PC's, e.g. Delay(100) waits for a tenth second. Unfortunately, the delay value is computed as the _16-bit_ result of a division which causes an overflow on too fast PC's (where a 32-bit result would work).

Joe
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 23:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com