Balancing compatibility with innovation .. ZXPand(+)

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
User avatar
siggi
Posts: 990
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Balancing compatibility with innovation .. ZXPand(+)

Post by siggi »

What about handling strange situations and errors?
How is a file of unknown size (e.g. serial port) read til end-of-file? Until an error occurs?
How are errors handled? Reading past end-of-input-file, seeking past end-of-input-file, writing to write protected file, writing to full stick?
The software should be able to handle this situations: no hard return to BASIC throwing a "standard error" and interrupting everything...

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Balancing compatibility with innovation .. ZXPand(+)

Post by PokeMon »

siggi wrote: Wed May 17, 2017 11:46 pm What about handling strange situations and errors?
Every request should be answered with a data block. If a header is provided for each data block, any errors can be written too. And of course the length of the data block should be provided which can be quite small when an error occurred. I think this would be more or less standard for any software interface. ;)
Post Reply