Olin Lathrop wrote: >Stephen D. Barnes wrote: > > >>In ASM30 the "MOV.B" instruction is for moving an 8-bit literal into >>a WREG. I know how to move the 16-bit register into a WREG by using >>"MOV f, WREG", but what I do not know is how to split that into two >>bytes, or worded differently, >>how to get the high byte and the low byte into two separate file >>registers. >> >> > >bss myvar, 2, 2 ;define 16 bit variable > > mov #myvar, w0 ;point W0 to start of MYVAR > mov.b [w0++], w1 ;get low byte of MYVAR into W1 > mov.b [w0], w2 ;get high byte of MYVAR into W2 > >****************************************************************** >Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC >consultant in 2004 program year. http://www.embedinc.com/products > > This is what I need! Thanks Olin. This is something I have been trying to accomplish but have not been successful with. Looks like the answer in front of my eyes but I did not see it. One more quick question. Will the UART on the 30F2010 take a 16-bit word or do I have to send it data 1 byte at a time, which is what the Family Reference and the Datasheet seem to indicate? -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist