A83: Re: X and Y loops
[Prev][Next][Index][Thread]
A83: Re: X and Y loops
ld b,63
loop1:
ld a,(x)
inc a
ld (x),a
push bc
ld b,94
loop2:
ld a,(y)
inc a
ld (y),a
djnz loop2
pop bc
djnz loop1
>How would I implement a loop to cover all x and y cords (0-63 on Y and 0-94
on
>X) in asm. I can't use DJNZ because both have to go and I'd be screwed up.
>
>
>
>- ---------------------------------------
>Michael Cook
>
>MBCook@MBCook.com (website related)
>ICQ: 1145861
>- ---------------------------------------
>www.MBCook.com (Main Site)
>www.MBCook.com/netsmart.html (NetSmart Homepage)
>- ---------------------------------------
>E-Mail for PGP key
>- ---------------------------------------
>I pledge allegiance to the compatibles of IBM, and to the developers for
which
>it stands, one platform, under Bill, indestructible, with peripherals and
>multimedia for all.
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 5.5.3i for non-commercial use <http://www.pgpi.com>
>
>iQA/AwUBNWqrlBdZVc5DvuaoEQKe9QCeNVuerWnJlPQLymomXrBCNqeotSIAoIyr
>CDmyyTZ0Ant95gn6BpMUadOD
>=Q6y8
>-----END PGP SIGNATURE-----
>