The following algorithm written in #6502assembly checks whether ASCII character loaded in the 8-bit accumulator is a hexadecimal digit ('0'-'9', 'A'-'F'). In case it is a hexadecimal digit, the corresponding value from 0000 to 1111 is stored in the low nibble of the accumulator.
2 months ago