[A83] Re: sprites


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

[A83] Re: sprites




In a message dated 01-04-24 04:18:59 EDT, you write:

<< putsprite:
   ld b,8
   ld a,(sprx)
   ld l,(spry)
   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 >>
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
-Joel