[z-machine] Small contribution to the ZMachine specs

David Anderson david.anderson at calixo.net
Fri Mar 24 13:54:49 GMT 2006


* David Anderson <david.anderson at calixo.net> [2006-03-24 01:10:48]:
> Attached is a patch in which we propose a rewording of section 12.4.1,
> to make the structure of the property size byte more explicit and
> consistent with context.

*Really* attached this time. Woops.

- Dave.
-------------- next part --------------
--- sect12.html.n	2006-03-17 15:55:34.000000000 +0100
+++ sect12-corr.html.n	2006-03-17 15:55:43.000000000 +0100
@@ -75,10 +75,11 @@
    size byte     the actual property data
                 ---between 1 and 8 bytes--
 </PRE>
-where the <B>size byte</B> is arranged as 32 times the number of data bytes
-minus one, plus the property number. A property list is terminated by
-a size byte of 0.  (It is otherwise illegal for a size byte to be a
-multiple of 32.)
+where the <B>size byte</B> is arranged in two sections: the length of
+the property data block minus one is written in the 3 most significant
+bits, and the property number occupies the 5 least significant bits. A
+property list is terminated by a size byte of 0 (zero-length and a
+property number of zero).
 <P>
 <BR><B>12.4.2</B><P>
 In Versions 4 and later, a property block instead has the form


More information about the Z-machine mailing list