How about:
swapf MEM1,w
andlw 0x0f
movwf MEM2
Can't think of anything much quicker, but then, I'm not a Picgod (tm) :o)
Mike
-----Original Message-----
From: PDRUNEN@AOL.COM [SMTP:PDRUNEN@AOL.COM]
Sent: Tuesday, April 18, 2000 4:16 PM
To: PICLIST@MITVMA.MIT.EDU
Subject: Code suggestions
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