Re: A83: PAusing


[Prev][Next][Index][Thread]

Re: A83: PAusing



>> I'm having trouble making a program wait for some time.  I can do getkey
>>  loops just fine, but I want a routine that will just make a program pause
>>  for a bit and then continue, no getkeys or anything.  Any suggestions?
>
>Use a command like this:
>:For(A,1,[Experiment and place your own time setting here])
>:End
>
>Depending on what you put for "put your own time setting here"(DONT use the
>square brackets) will set how long the program waits before it continues.

Ummm...  I'm pretty sure he meant in assembly:

  ld b,[Time in 200ths of a second]
Delay:
  halt
  djnz Delay

This will work for delays up to 1 11/20 seconds

For longer delays (up to 327.675 seconds):

  ld hl,[Time in 200ths of a second]
Delay:
  halt
  dec hl
  ld a,h
  or l
  jr nz, Delay


--
Brian Leech
butvis@mindspring.com
ICQ UIN: 1355611




References: