HornickĬonverting numeric to ASCII LDI r20, 0x5A init r20 to a value MOV r21, r20 copy r20 ANDI r21, 0x0F r21=0x0A after mask MOV r22, r20 copy r20 SWAP r22 r22=0xA5 after swap ANDI r22, 0x0F r22=0x05 after mask LDI r20, 0x37 ASCII offset for A-F ADD r21, r20 r21 is now 0x41=‘A’ LDI r20, 0x30 ASCII offset for 0-9 ADD r22, r20 r22 is now 0x35=‘5’ CS-280 Dr. SWAP Instruction LDI r20, 0x5A init SWAP r20 swap nibbles After SWAP, r20 contains 0xA5 CS-280 Dr. If you use ASCII artwork from here, please do not remove the artists name/initials if they are present. They are used to represent lowercase letters in computers. Dont forget to try our new Animated ASCII Art (beta).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |