HELP!
Suppose I want to have the boxes be various y positions.
I have this code:
boxydata:
db 029h, 039h, 049h, 059h
add a,#boxydata & 0ffh
movp a, @a ;get byte
mov r1, a
mov r0,#000h ; pointer to sprite 0 Y pos in VDC
mov r7, #1
call copyspriteloop
It works good for the first position (029h), but I can't figure out how to advance the correct number in boxydata for it to read it and make the box be in the second position listed (039h) the second time.
copyspriteloop:
mov a,r1
movp a,@a ; get byte
movx @r0,a
inc r0
inc r1
djnz r7,copyspriteloop
ret