[A83] Re: Dividing


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

[A83] Re: Dividing



Pretty close.  I presume you mean rlca when you say "rol", and you shouldn't 
need to do any and-ing if it's already 2 bit.

  ld ix,here
  ld a,l
  rlca
  rlca
  or h
  ld (here+2),a
here:
  ld a,(ix+0)
  ret

  .db    0,1,2,3,0,0,1,1,0,0,0,1


In a message dated 6/8/2001 5:41:17 PM Eastern Daylight Time, 
lairfight@softhome.net writes:


> lol.. something like this, for h over l:
> 
>     ld    ix,here
>     ld    a,l
>     rol    a
>     rol    a
>     and    12
>     or    h
>     ld    (here+2),a
> here:    ld    a,(ix+0)
>     ret
> 
>     .db    




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