The Output Control Register, Input Control Register and Input Size Register are populated from the lower bits of the characters in the format string, streamlining the parsing procedure:
- Upon parsing a Field Header, set Output Control Register Bit 13
- A packing directive may immediately follow and set Input Control Register Bit 7
- In general, the Output Control and Input Control registers are set by the lower bits of the character data in the format field string.
- The Flag characters each correspond to a single bit in the Output Control Register.
- Output Control Register Bits 2, 5, 8 toggle to 1 if a corresponding Selector character appears in the conversion specifier. They are 0 otherwise.
- A final Input Size sets the lower 4 bits of the Input Size Register.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.