Why not set the timer to 1ms

by David (no login)

DEF SEG = 0
IH = 46: IL = 157
OUT &H43, &H34 'set timer to 1 ms
OUT &H40, IL
OUT &H40, IH
POKE &H46C, 0: POKE &H46D, 0 'zero timer
WHILE PEEK(&H46C) < 2: WEND 'synchronize

DO
POKE &H46C, 0 'zero timer
WHILE PEEK(&H46C) < 1: WEND 'wait 1 ms
'do output here
LOOP

Posted on Apr 1, 2008, 10:56 AM
from IP address 64.28.135.2

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
Try it with some "output" code on Apr 1