pub fn decmial_adjust(prevflags: Flags, val: u8) -> (u8, Flags)Expand description
Helper for doing binary-coded-decimal. Adjusts the hex didgits to keep both nybbles in range 0..=9 by adding 0x06 and/or 0x60 to push the digit to the next nybble. Depends on the carry/halfcarry flags.