Re: A86: OP1


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

Re: A86: OP1



In a message dated 97-10-30 11:01:54 EST, you write:

> 
>  > however the caps goes.  Converting a register to an OP is much more
>  > difficult, and can be accomplished with a djnz loop, where you take the
# 
> in
>  > b and increment OP1 that many times.
>  
>  there HAS to be an easier way than that!
>  
>  

I haven't found an easier way.  If anyone knows a call (or can think of a
good way of converting to BCD) that converts register->OP, please post it...

I suppose you could do something with unpackhl, like maybe load the first
digit into the 5th digit (woul require some bit shifting...), and so on, or
something, like this:

f.edcbaE+05 

into OP1, and maybe it would accept that and convert it to 

fedcba

where a,b,c,d,e,f are the A's from unpack hl, in the order you get them in.

That probably makes NO sense!

~Steve


Follow-Ups: