Re: A86: Re: _CreateReal
[Prev][Next][Index][Thread]
Re: A86: Re: _CreateReal
Gotta multiply by 10 first.
ld b,a
call _shracc
add a,a
ld c,a
add a,a
add a,a
add a,c ;a=a*10
add a,b
In a message dated 12/28/99 9:57:30 PM Eastern Standard Time,
malcolmj1@juno.com writes:
> i guess you would then
> add the first nibble (the
> high nibble) to the second
> nibble to get the
> actual columns. this might
> work...
> ========start code==========
> ld a,(first_byte) ;get the byte
> ld c,a ;save it away
> and %11110000 ;clear low nibble
> rrca
> rrca
> rrca
> rrca ;shift it over
> ld b,a ;save that away
> ld a,c ;get back original
> and %00001111 ;clear high nibble
> add a,d ;add it
> ======end code==========
>
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/ (down)