Discussion:
Microsecond Timer
(too old to reply)
M***@gmail.com
2007-06-20 02:57:04 UTC
Permalink
Hi there

I had this running in BP7 DOS under Win98.

It does not run in a DOS window under Win XP!

Why?

regs.ax := $8301 ; {instruction to reset}
intr($15,regs) ; {does a reset of the timer}
regs.ax := $8300 ; {instruction to count down}
regs.cx := x div 65536 ; {high byte}
regs.dx := x mod 65536 ; {low byte}
intr($15,regs) ; {start countdown at memL[$40:$9c]}

Any suggestions how this might work or another microsocond timer to
run in DOS/WinXP using BP7?
Sv. Broholm
2007-06-20 18:07:34 UTC
Permalink
Post by M***@gmail.com
Hi there
I had this running in BP7 DOS under Win98.
It does not run in a DOS window under Win XP!
Why?
regs.ax := $8301 ; {instruction to reset}
intr($15,regs) ; {does a reset of the timer}
regs.ax := $8300 ; {instruction to count down}
regs.cx := x div 65536 ; {high byte}
regs.dx := x mod 65536 ; {low byte}
intr($15,regs) ; {start countdown at memL[$40:$9c]}
Any suggestions how this might work or another microsocond timer to
run in DOS/WinXP using BP7?
Download TPTIMER.ZIP from http://home.image.dk/sbroholm/download/

This should solve your problem.
Svend
M***@gmail.com
2007-06-23 11:33:18 UTC
Permalink
Thank you it does

Loading...