[A86] Re: What's wrong w/ This?2


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

[A86] Re: What's wrong w/ This?2



Okay, now it draws it right on the y-axis, but yeah, your right it only draws 
it on an aligned byte. Could you point out where your talking about?

ps_normal:
  ld    hl,offsets
  ld    a,b
  and   $07
  add   a,l
  ld    l,a
  adc   a,h
  sub   l
  ld    h,a
  ld    e,(hl)
  ld    hl,_rld
  ld    (hl),c
  ld    a,b
  rrca
  rrca
  rrca
  rld
  or    $FC
  ld    l,(hl)
  ld    h,a
_rld:    .db $00
offsets: .db 0,1,2,3,4,5,6,7
  ld   d,0
  ld   b,(ix)
  inc  ix
ps_draw:
  add  hl,de
  ld   a,(ix)
  or   (hl)
  ld   (hl),a
ps_shift:
  ld   a,16
  ld   d,0
  ld   e,a
  inc  ix
  djnz ps_draw
  ret

Josh Gentry
"Real programmers code in pen during math class."
http://www.freewebz.com/jdgentry