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

Re: a random update to peekbot



On Nov 30, 6:13 pm, m...@deichjugend.de wrote:
> I also do think that the program may get too complicated to be
> universal at one point (expansions for Atari or Commodores?).

I think the basic architecture should be able to handle a lot of
different machines without becoming too complex to maintain- each
native file type gets it's own source file in a folder named after the
host machine, and that 1 file includes
1) whatever tests are necessary to determine if a file is of that type
(e.g. by looking at file system meta data, or file size, load address,
or headers)
2) a function that renders that native file into something useful
(text, a listing, a png, etc).

The only thing that's got a bit hairy as I've added additional machine
types (Apple 2, Atari 800, C64, Tandy Coco, TI 99/4a, TRS-80) is
making sure I've got good tests for each of the candidates so I can
sort out what a file with extension 'DSK' really is - it seems it's
only the C64 that doesn't have at least one disk image format using
that extension.