TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: AHEM A RIVET`S SHOT
date: 2020-03-09 19:21:00
subject: Re: self hosting on the P

On Mon, 9 Mar 2020 13:31:06 -0000 (UTC)
Martin Gregorie  wrote:

> On Mon, 09 Mar 2020 10:02:00 +0000, Ahem A Rivet's Shot wrote:
>
> > Instead of 'next' the pointer field contains 'next xor previous'
> > provided you know where you came from 'last' you go to 'last xor
> > pointer'
> > to continue in the same direction.
> >
> Very nice!

 Very much mixed feelings - wherever possible use two pointers, when
you can't it's a lifesaver. Now x & -x OTOH - that's just neat (two's
complement machines only).

> I hope it was well commented, though, for the benefit of whoever would
> modify the code next (this included yourself!)

 Oh yes GPFO comment with lots of detail.

> .....
>
> The worst piece of tricksy, undocumented and uncommented code I remember
> seeing was 60 lines (one lineprinter page) of 1900 assembler. It used no
> variables or labels: all data was held in the 8 accumulators and all
> control transfers were relative jumps. The only comment in the entire
> mess was:
>
> Calculate last day in month. Works until Feb 2100.

 Sounds a lot like the source of the BASIC for the Camputer's Lynx
which I was unfortunate enough to see. Sixteen kilobytes of almost
completely uncommented Z80 assembler - the only comments were clearly
reminders for overnight breaks and hopelessly cryptic. It had apparently
been written in six weeks - it looked like it!

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:\>WIN                                     | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.