Re: A83: Direct Input/Delay
[Prev][Next][Index][Thread]
Re: A83: Direct Input/Delay
On Sun, 27 Sep 1998 Jkhum98@aol.com wrote:
>
> Ok, (to add on to my mail a little bit) I just decided to experiment with some
> delays, but it either froze my calc or is taking a helluva long time... :\
> Tell me how much this delay sucks, and give me a new one please, anyone...? Im
> not calling this in my Direct Input loop though. Its right after I switch the
> text video of that word (like i was talking about before), and then calling
> the Delay, and then jumping to my Direct Input loop. Whats the problem...?
> --Jason K.
> Delay:
> ld b, $FF
> DelayLoop:
> push af
> dec b
> pop af
> nop
> djnz DelayLoop
> ret
>
Isn't that going to be an endless loop since you're making a double
decrement with that extra dec b, now it goes down to 3, 1, -1, never 0
pick away that dec b and it will probably work
/Stefan
References: