changeset 22174:a25747a97680

clarify description of reserved_count in frame header patch by (Clemens Ladisch cladisch,fastmail,net)
author michael
date Sat, 10 Feb 2007 17:00:03 +0000
parents 7a98ceca1330
children 105f32787336
files DOCS/tech/nut.txt
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/nut.txt	Sat Feb 10 12:19:36 2007 +0000
+++ b/DOCS/tech/nut.txt	Sat Feb 10 17:00:03 2007 +0000
@@ -301,6 +301,7 @@
 frame:
     frame_code                          f(8)
     frame_flags= flags[frame_code]
+    frame_res= reserved_count[frame_code]
     if(frame_flags&FLAG_CODED){
         coded_flags                     v
         frame_flags ^= coded_flags
@@ -315,8 +316,8 @@
         data_size_msb                   v
     }
     if(frame_flags&FLAG_RESERVED)
-        reserved_count[frame_code]      v
-    for(i=0; i<reserved_count[frame_code]; i++)
+        frame_res                       v
+    for(i=0; i<frame_res; i++)
         reserved                        v
     if(frame_flags&FLAG_CHECKSUM){
         checksum                        u(32)