Re:Why did Turbo Pascal apps fail with a division-by-zero on...
by 0x0 on Saturday August 24, 2019 @11:17AM
(#20787590)
MS-DOS kinda expects the timer interrupt to only fire at around 18.2hz I think so it's too coarse for millisecond delays.
[ Parent
| on HN ]
Re:Why did Turbo Pascal apps fail with a division-by-zero on...
by bonzini on Saturday August 24, 2019 @05:15PM
(#20789757)
You can read the timer's countdown counter instead of relying solely on the tick; it runs at 1.2 MHz approximately.
Re:Why did Turbo Pascal apps fail with a division-by-zero on...
by rasz on Saturday August 24, 2019 @10:05PM
(#20790900)
ms dos compatible != IBM PC compatible. 80186 based PC will still run TP programs, despite Timer0 being mapped to port 30-36H instead of 40-43H, not to mention totally non 8253 compatible.