From: Scott Dattalo
mov W, >>bcd
and W, #01111000b ;W = tens*8
mov temp, W
clrb C
rr temp ;temp = tens*4
rr temp ;temp = tens*2
mov W, bcd-w ;W = tens*16 + ones - tens*8
;W = tens*8 + ones
add W, temp ;W = tens*10 + ones
| file: /techref/scenix/lib/math/radix/bp2b-2d8b_sx.htm, 0KB, , updated: 2004/6/10 14:40, local time: 2010/3/16 08:50,
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://piclist.com/techref/scenix/lib/math/radix/bp2b-2d8b_sx.htm"> SX Microcontroller Radix Math Method BCD packed to binary 2 digit to 8 bit</A> |
| Did you find what you needed? |
|
|
.