[A83] a question...


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

[A83] a question...




ok... i have a breif question...

code:
  stuff in here...
putsprite:
  call pickspr
  ld b,8
  ld a,(spry)
  ld l,a
  ld a,(sprx)
  call ionPutSprite
  bcall(_grbufcpy)
  ret
pickspr:
  ld ix,sprite
  ld a,(dire)
  cp 1
  ret z
  ld ix,left
  ld a,(dire)
  cp 2
  ret z
  ld ix,right
  ret
ok... this works fine as a way of picking sprites but there has to be a 
better way of doing it (quicker)... how do you do this based on what a 
variable's value is... i know there is a way but i can't remember...
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Follow-Ups: