N: Kleiner machen?


N: Kleiner machen?

von tschak909 » So 7. Feb 2021, 21:47
Wäre eine funktionale Beschreibung des N:-Handlers und seiner Funktionen hilfreich für diejenigen, die ihn hacken und kleiner machen wollen?

-Thom

Re: N: Kleiner machen?

von Dietrich » Mi 10. Feb 2021, 18:20
Hi Thom,

docs are always useful. I wrote an FSWAP fnc-tool, which swaps two drives. But unfortunately, the Fujinet SIO docs are not up to date. So I had to look at the FMOUNT+FEJECT source code and experiment a bit ...

Here are some issues in the SIO docs:
$E0 Get Host Prefix: doc is missing
$E1 Set Host Prefix: doc is missing
$E2 Set Filename for Device Slot: DAUX2 doesn't work, $F1 seems to be the only way to save host and mode?!
$F1 Write Device Slots: Only host and mode are important, the filenames are ignored (?), length is 304, not 296
In general: mode is 1=read, 2=write (not 0=read, 1=write)
$F2 Get Device Slots: missing info: hostnr=$FF means drive is empty
$F8 Mount Device Image: DAUX2=mode is activated, but not saved

Some issues I found while writing FSWAP:
- Sometimes FMALL displays ERROR. Reason is command $F8, which timed out - DTIMLO is set to 1 second, which seems to be too low.
- If all 8 drives are mounted, the disk rotate button can't rotate from D8: to D1:.
- After using FEJECT, the disk rotate button doesn't work anymore (e.g. D1:-D3: are used, and you eject D3:).
- When calling $F8 on an empty drive, the Fujinet cart resets and therefore unmounts all drives - except D1, which is the CONFIG image. (OK, this isn't useful, but why Fujinet resets in this case?)

OK, back to the N handler: I looked at the source code. It can be shortened a bit, but not very much - maybe I'll try a rewrite. So if you have time, docs are helpful to this - and of course to write programs for the N handler.

Re: N: Kleiner machen?

von tschak909 » Mi 10. Feb 2021, 18:38
Thank you, so much, for correcting this! I will apply the corrections as soon as I can! :)

As far as host slots and filenames, the discrepancies you're seeing are a consequence of having to extend CONFIG to handle filenames that were longer than the visible length of their presence on screen. ;)

-Thom