| Author |
Message |
   
Raymond Kloprogge
| | Posted on Thursday, Aug 25, 2005 - 18:25: | |
Hello, I'm trying to interpret a data format where bits 4 to 0 in a certain byte are used to indicate the number of description blocks following. So I would use something like: uint_flex "4,3,2,1,0" "Count" move -3 { uint8 "Some byte ~" } [Count] Unfortunately 'Count' is not accepted as repetition count. An alternative could be uint8 "Count" { uint8 "Some byte ~" } [Count & 0x1f] But that is also no allowed. Do you have a solution? Thank you in advance. I'm using WinHex 12.05SR3 |
   
Stefan Fleischmann (Admin)
| | Posted on Thursday, Aug 25, 2005 - 18:36: | |
Sorry, are you using a registered version of WinHex? Cannot find your name in our customer database. |
   
Raymond Kloprogge
| | Posted on Thursday, Aug 25, 2005 - 18:38: | |
Oh yes, the following construction gives an error on the [unlimited]: uint8 "Count" numbering 1 { IfEqual ~ Count ExitLoop EndIf uint8 "Some byte ~" } [unlimited] |
|