mov W, #'0'
snb CHAR1.6
mov W, #'A'-10
sub CHAR1, W
mov W, #'0'
snb CHAR2.6
mov W, #'A'-10
sub CHAR2, W
mov W, <>CHAR1
add W, CHAR2
-Andy
=== Andrew Warren - fastfwd at ix.netcom.com
=== Fast Forward Engineering - San Diego, California
=== http://www.geocities.com/SiliconValley/2499
James Newton says:
How about:
mov W, #'0'
snb CHAR1.6
mov W, #'A'-10
sub CHAR1, W
sb CHAR2.6
mov W, #'0'
sub CHAR2, W
mov W, <>CHAR1
add W, CHAR2
or
clrb CHAR1.5
clrb CHAR2.5
mov w, #'A'-10
sb CHAR1.6
sub CHAR1, w
sb CHAR2.6
sub CHAR2, w
| file: /techref/scenix/lib/math/radix/a2b-2h8b-aw_sx.htm, 1KB, , updated: 2004/6/10 14:40, local time: 2010/3/22 04:13,
38.107.191.112:LOG IN
|
| ©2010 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? Please DO link to this page! Digg it! <A HREF="http://www.piclist.com/techref/scenix/lib/math/radix/a2b-2h8b-aw_sx.htm"> SX Microcontroller Radix Math Method </A> |
| Did you find what you needed? |
|
|
Ubicom SX18 thru SX52, PIC 16c5X compatibile, 50 to 75 MIPS microcontrollers! Now US customers can buy the Excellent SXDev from SXList.com for $150 + $15 import fee + s&h (~ $180 total+tax in CA) |
.