[A83] What's up with my early-stage sprite routine??


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

[A83] What's up with my early-stage sprite routine??



I know everyone is gonna say it is gonna be slow, and uses terrible coding, 
but please mind that! All I'm doing now is having it draw just the first row 
of a sprite, and that doesn't work! Please help me here and tell what's wrong 
with this, and don't gimme another routine...!

; d  = x
; e  = y
; bc = sprite label
xputsprite:
  push bc
  ld   a,e
  ld   b,11
xputspritea:
  add  a,e
  djnz xputspritea
  ld   e,a
  ld   a,d
  ld   b,7
xputspriteb:
  sub  d
  djnz xputspriteb
  ld   (hl),a
  ld   d,0
  adc  hl,de                    ; hl is now the proper addend for video 
memory
  ld   de,plotsscreen      
  adc  hl,de
  pop  bc
  ld   h,b
  ld   l,c
  ret                      

----------------------------
Thanks,
Colin Hart
Xempest@aol.com