Context
SimpleBlockInterpreter previously skipped union, nested, pointer, and bitfield block types. These are now fully implemented (commit 27ef321a).
What changed
- union: resolves discriminant variable, selects matching variant, executes variant sub-fields or decodes inline
ValueType; falls back to first variant
- nested: expands inline struct
Fields list; triggers bitfield expansion when Bitfields list is present
- pointer: reads target address at offset, stores in
TargetVar, labels result
- bitfields: inline extraction from any
field/nested block with Bitfields list; applies ValueMap lookup, stores extracted values as variables
Files affected
Services/SimpleBlockInterpreter.cs (+223 lines)
Follow-up
Context
SimpleBlockInterpreterpreviously skippedunion,nested,pointer, andbitfieldblock types. These are now fully implemented (commit27ef321a).What changed
ValueType; falls back to first variantFieldslist; triggers bitfield expansion whenBitfieldslist is presentTargetVar, labels resultfield/nestedblock withBitfieldslist; appliesValueMaplookup, stores extracted values as variablesFiles affected
Services/SimpleBlockInterpreter.cs(+223 lines)Follow-up
.whfmtschema additions for union/bitfields