ASCII hexadecimal to Binary
LIST R = DEC
MOVLW '0'
BTFSC CHAR1,6
MOVLW 'A'-10
SUBWF CHAR1
MOVLW '0'
BTFSC CHAR2,6
MOVLW 'A'-10
SUBWF CHAR2
SWAPF CHAR1,W
ADDWF CHAR1,W
ADDWF CHAR1,W
ADDWF CHAR2,W
-Andy
=== Andrew Warren - fastfwd@ix.netcom.com
=== Fast Forward Engineering - San Diego, California
=== http://www.geocities.com/SiliconValley/2499
file: /Techref/microchip/math/radix/a2b-2h8b-aw.htm, 3KB, , updated: 2002/7/11 18:51, local time: 2024/12/26 09:16,
owner: JS-ppp-IA5,
|
| ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/microchip/math/radix/a2b-2h8b-aw.htm"> PIC Microcontoller Radix Math Method </A> |
Did you find what you needed?
|