On Tue, 18 Apr 2000 PDRUNEN@AOL.COM wrote: > Hi Group, > > I have a memory location I need to break up into two different register. > > If MEM1 = $32 then MEM2 gets $03 and MEM3 gets $20 for $0320 > if MEM1 + $14 then MEM2 gets $01 and MEM3 gets $40 for $0140 > > I am basically multiplying by 16 (decimal), I see several ways myself but > would > like to see what the group can come up with. > > Paul > swapf mem1,w movwf mem2 andlf 0xf0 xorwf mem2,f movwf mem3 Scott