[A83] Re: Quick quistion about djnz
[Prev][Next][Index][Thread]
[A83] Re: Quick quistion about djnz
Everyone says "speed is important", but very rarely is it really important.
If two t-states are going to be called 100,000 times a frame, then maybe
it's important, otherwise, no. And in this case, it's not faster anyway:
djnz label ; 13
dec b ; 4
jp nz,label ; 10
; = 14
> If you use a djnz loop, does it then jp or jr?
> Speed is important, so if it does jp then maybe it is faster to do
>
> dec b
> jr nz,label
>
>
> rather than djnz ??
References: