Re: A86: ASM Programming Test - div 3


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

Re: A86: ASM Programming Test - div 3




A little loop like I had isn't very big, and what you had seemed like it
would take up alot of space (at least 3-4 times as much, and like you said,
it's more like 12-13).  For what I am using it for, I'm dividing map coords
that have a range of 0-63 by 3 to fit into a radar display, so it would loop
1-20 times.  Not bad at all, imho.  If you were routinely dividing numbers
that were > 128, it might be worth it.  For small numbers, I'd say forget it
(though you are welcome to try).

-----Original Message-----
From: Nuno Joao <nmasj@camoes.rnl.ist.utl.pt>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Wednesday, December 09, 1998 6:29 PM
Subject: Re: A86: ASM Programming Test - div 3


>
>David Phillips wrote:
>>
>> Hmm, that's intersting.  The problem with all of this is that the z80
can't
>> do multiple shifts at once, so you'd be better off using a loop anyway.
>>
>
>  You only need to do 8 shifts.
>
>  Well, I don't know what are you looking for, speed or space
>  (or both...).
>
>  NSJ aka Viriato
>  l41324@alfa.ist.utl.pt
>  nmasj@camoes.rnl.ist.utl.pt
>  http://camoes.rnl.ist.utl.pt/~nmasj - DemoAdict/TaradoPorDemos