[A83] Re: sprites


[Prev][Next][Index][Thread]

[A83] Re: sprites



Actually assuming he's not putting anything into h, he can just do ld 
hl,(spry) which puts (spry) in l and (spry+1) in h.


In a message dated 4/24/2001 7:42:50 AM Eastern Daylight Time, 
SOCCERK121@aol.com writes:


> You can't load a variable directly into l, change your code to this:
> putsprite:
>   ld b,8
>   ld a,(spry)
>   ld l,a
>   ld a,(sprx)
>   ld ix,sprite
>   call ionPutSprite
>   bcall(_grbufcpy)
>   ret
> sprite:
>   .db $18
>   .db $18
>   .db $3C
>   .db $3C
>   .db $3C
>   .db $5A
>   .db $7E
>   .db $BD



----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org