From eaa0ecc9c8e97eb7b69ccce833aeeaf8cfeab7db Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Sun, 9 Oct 2022 11:14:28 -0700 Subject: [PATCH] Update NuFX Addendum --- library/nufx-addendum.htm | 209 ++++++++++++++++++++++++-------------- 1 file changed, 131 insertions(+), 78 deletions(-) diff --git a/library/nufx-addendum.htm b/library/nufx-addendum.htm index 6458c41..31e8005 100644 --- a/library/nufx-addendum.htm +++ b/library/nufx-addendum.htm @@ -199,8 +199,10 @@ disk images used for emulators is considered.  At first glance, it seems useful to be able to store a hierarchy of disk images.  In practice, such images would either be archived as a hierarchy of .PO files, or as an archive of .SDK archives.

+

Ultimately, the disk volume name is embedded in the disk image itself. The +name stored in the archive is purely decorative.

Adding/renaming Applications must -strip any leading path components from disk image "storage names".  +strip any leading path components from disk image "storage names" (The NuFX specification does explicitly forbid the use of a filesystem separator character in a disk volume name.)

Extracting: @@ -272,30 +274,30 @@ For GSHK compatibility, the filename thread compThreadEOF must be the greater of free space remaining after a file is renamed.  However, if the filename itself exceeds the buffer size and the thread must be rebuilt, the 8-byte padding should be added.

+

 

Thread ordering

-

The NuFX specification does not require that threads appear in -any particular order.  However, writing them in a certain order can make -some operations significantly easier.

+

The NuFX specification specifies a general ordering for +threads ("blocks must occur in the following fashion"), but doesn't indicate +what should be done if they appear out of order. Handling out-of-order +threads isn't impossible, but it can be inconvenient.

For example, if an archive is being unpacked as it is received, -it is important to know the filename before receiving the data.  If the +it is important to know the filename before receiving the data. If the filename thread comes after the data threads, the application has to write the incoming data into a temp file, and then rename it later when the filename -thread finally shows up.  It would also be nice to be able to display file +thread finally shows up. It would also be nice to be able to display file comments as the file is being downloaded.

Creating: The filename thread must precede all other -threads.  The recommended (but not required) ordering for common thread -types is:

+threads. The recommended ordering for common thread types is:

Extracting: If the filename thread does not appear before the first data-class thread, the record may be ignored.

+

 

Incompatible thread types

There are some combinations of threads that must never appear in @@ -329,8 +331,8 @@ systems.  However, certain values are significant.