Re: A83: DE * 3/4
[Prev][Next][Index][Thread]
Re: A83: DE * 3/4
thanks. i'll try that.
>From owner-assembly-83-outgoing@towerguard.unix.edu.sollentuna.se Sat
Sep 5 10:44:22 1998
>Delivered-To: assembly-83-outgoing@towerguard.unix.edu.sollentuna.se
>Received: by towerguard.unix.edu.sollentuna.se (VMailer, from userid
507)
> id 441A461003; Sat, 05 Sep 1998 19:44:14 +0200 (CEST)
>From: Linus Akesson <lairfight@softhome.net>
>To: Ahmed El-Helw <assembly-83@lists.ticalc.org>
>Date: Sat, 05 Sep 1998 19:45:14 +0100
>Message-ID: <yam7552.702.274321232@smtp.softhome.net>
>In-Reply-To: <19980905170629.20927.qmail@hotmail.com>
>X-Mailer: YAM 1.3.5 [020] - Amiga Mailer by Marcel Beck
>Subject: Re: A83: DE * 3/4
>MIME-Version: 1.0
>Content-Type: text/plain
>Sender: owner-assembly-83@lists.ticalc.org
>Precedence: list
>Reply-To: assembly-83@lists.ticalc.org
>Errors-To: assembly-83-errors@lists.ticalc.org
>
>
>On 05-Sep-98, Ahmed El-Helw wrote:
>
>>Can someone please tell me a routine that can multiply de by 3/4, or
>>give you 75% of de.. aka if de = 128, then it becomes = 96. Thanks.
>> -Ahmed
>
>>______________________________________________________
>>Get Your Private, Free Email at http://www.hotmail.com
>
>if you know that de*3 will fit in de:
>
>push hl
>ld hl,de
>add hl,hl
>add hl,de
>srl h
>rr l
>srl h
>rr l
>ld e,l
>ld d,h
>pop hl
>
>Linus
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com