Re: A86: Input (yes another input question)


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

Re: A86: Input (yes another input question)




Recursive?  Are you sure are using the right term?  Recursive code is code
that calls it self.  It is used for such things as traversing linked lists,
binary trees, reversing data, etc.  Did you mean a loop?  Also, it is
possible to unroll a loop that is not run for a predetermined number of
times.   Anyone heard of Duff's Device (a C thing)?


-----Original Message-----
From: ComAsYuAre@aol.com <ComAsYuAre@aol.com>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Sunday, October 04, 1998 2:46 PM
Subject: Re: A86: Input (yes another input question)


>
>In a message dated 10/4/98 4:28:55 PM Eastern Daylight Time,
electrum@tfs.net
>writes:
>
>> Yeah, I know.  A few t-states isn't worth trading for a few bytes, imho.
>>  About the only time loop unrolling is good is when you are doing
somehting
>>  like scrolling, where you are looping for the whole screen.  I was just
>>  joking because I didn't think about using a loop.  I just followed what
he
>>  had before.
>
>
>the only time recursion is really necessary is when you don't know ahead of
>time how many times it will run (findpixel, for example).  if the line
before
>a loop is "ld b,_" then making it recursive is just a convenience.