Having an old 8 bit ASM converted to newer (ST7) 8-bit ASM. ST does not have a BCD mode (which the older processor did), so I need to convert arithmetic (mostly adds with carry) from hex to BCD, and back.
The BCD uses a 4 bit nibble that does not exceed 10 decimal. In this application, the BCD is primarily used for 7 segment LED displays (to keep from trying to have an A-F put out to the LED drivers).
Question:
Is it difficult to explain how you would do this conversion in a system (ST7) that only works in Hex?
Now that I have re-read this note, I realize acronyms were made to keep people from communicating with each other ;-)
Jim Knight remove NOSPAM from direct email responses