[A83] Re: delay code


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

[A83] Re: delay code




You also could do:

ld hl,8000h
ld de,8000h
ld bc,1000
ldir

Michael Vincent
Detached Solutions - www.detacheds.com
Radical Software - www.radicalsoft.org
www.michaelv.org 
----- Original Message ----- 
From: "Thomas Lutz" <tlutz@stevens-tech.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, March 25, 2002 8:56 PM
Subject: [A83] Re: delay code


> 
> Use a loop and a subloop, kind of like this
> 
> LD BC,0999h
> 
> OUTLOOP: ;Outer loop
> PUSH BC
> LD BC,500h
> INNERLOOP:
> DEC BC
> LD A,B
> OR C
> JR NZ,INNERLOOP
> POP BC
> DEC BC
> LD A,B
> OR C
> JR NZ,OUTLOOP
> 
> Naturally, you should adjust the values loaded into BC
> 
> Hope that helps...
> -Tom
> 
> 
> 
> 
> 
> -----Original Message-----
> From: assembly-83-bounce@lists.ticalc.org
> [mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of
> VertGuy@aol.com
> Sent: Monday, March 25, 2002 10:40 PM
> To: assembly-83@lists.ticalc.org
> Subject: [A83] delay code
> 
> 
> I want to slow down a section of code so it doesn't refresh at such a
> rate 
> that it becomes a blur.  I've tried several repetitive (non-functioning)
> 
> lines of code but I can't see a difference.  What is the best way to
> slow the 
> calc down?
> 
> 
> 



Follow-Ups: References: