[A83] Re: Help....!


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

[A83] Re: Help....!




ld hl,(clines)
ld h,0
add hl,hl  ;*32
add hl,hl
add hl,hl
add hl,hl
add hl,hl
ld a,(lines)
bcall(_divhlbya)
ld a,l
add a,21

This right?



>From: SOCCERK121@aol.com
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Help....!
>Date: Fri, 16 Mar 2001 17:40:29 EST
>
>
>(clines) is one byte
>(lines) is one byte
>I need to create the following math problem:
>
>(clines) / (lines) * 32 + 21
>
>clines <= lines    <--- always
>
>the only problem is, _divHLbyA orounds to nearest integer, so it will 
>always
>be 0 or 1, considering (clines)/(lines) <1.  Please help.  Thanks
>
>-Joel
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





Follow-Ups: