| ??? 03/20/03 02:04 Read: times |
#41910 - ACC ->> ASCII Responding to: ???'s previous message |
Try these :
Option 1 ; CNVASCI converts the lower nibble in accumulator to ASCI equivalent ; and returns Acc with converted value. ( Not my idea but got it from the net- dunno where... ) CNVASCI: ANL A, #00FH ; Keep Only Low bits ADD A, #090H ; Add 144 DA A ADDC A, #040H ; Add 64 DA A RET Option 2 ; CNVASCI converts the lower nibble in accumulator to ASCI equivalent ; and returns Acc with converted value. CNVASCI: MOV B, A ; Save Acc CLR C SUBB A, #0AH ; Find out if its 0-9 or A-F JNC ADD37 MOV A, B ADD A, #30H RET ADD37: MOV A, B ADD A, #37H RET Raghu. |
| Topic | Author | Date |
| Display a random number in LCD | 01/01/70 00:00 | |
| Use LCD with Random code ? | 01/01/70 00:00 | |
| RE: Use LCD with Random code ? | 01/01/70 00:00 | |
| RE: Use LCD with Random code ? | 01/01/70 00:00 | |
| RE: Use LCD with Random code ? | 01/01/70 00:00 | |
| RE: Use LCD with Random code ? | 01/01/70 00:00 | |
| RE: Display a random number in LCD | 01/01/70 00:00 | |
| ACC ->> ASCII | 01/01/70 00:00 | |
RE: ACC ->> ASCII | 01/01/70 00:00 |



