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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist