Re: A85: DJNZ
[Prev][Next][Index][Thread]
Re: A85: DJNZ
djnz decrements the B register and jumps back up to the label if b is not
0
ld b, 10
pixelLoop:
CALL_(drawPix)
djnz pixelLoop
voila!
Erik Huizing
ehuizing@acs.ucalgary.ca
http://www.ucalgary.ca/~ehuizing
On Mon, 28 Jul 1997, Will Stokes wrote:
I believe all you would have to do is for the loop also decrease say d
every time you draw a new point. just load d with a certain number (say 10
pixels?) befor eyou start and thendo it like this:
ld d, 10 ; 10 pixels
top:
inc b
call_(drawpixel) ; draws pixel at b,c
dec d
djnz top
am I correct? i havn't used htis function much myself and not for a while
anyway =)
On Mon, 28 Jul 1997, John Koch wrote:
> Question, how do I use DJNZ. I'm trying to make a loop that plots
> pixels in rows and things. Can someone please explain this to me.
>
> John
>
Biya! =)
. . .
. . . .
. . . .
. Will Stokes .
. wstokes@vertex.ucls.uchicago.edu .
. wstokes@geocities.com .
. http://www.geocities.com/SiliconValley/Pines/7360/will.htm .
. .
. .
. http://www.geocities.com/SiliconValley/Pines/7360/ .
. . (The TI-85 Calc. Center) .
. .
. . . .
. . . . . . . .
. . . . . .
.
References:
- Re: A85: DJNZ
- From: Will Stokes <wstokes@vertex.ucls.uchicago.edu>