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
See also:
| file: /Techref/scenix/lib/math/radix/bp2b-2d8b_sx.htm, 0KB, , updated: 2004/6/10 13:40, local time: 2012/2/10 14:57,
38.107.179.234:LOG IN |
| ©2012 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://www.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? |
|
|
.