Stephen D. Barnes wrote : > >> > >Jan-Erik Soderholm wrote: > >"Byte mode addressing" ?? > > > >Like in "MOV.B WREG, F" > > > >Jan-Erik. > > > > > > > In ASM30 the "MOV.B" instruction is for moving an 8-bit > literal into a WREG. "MOV.B #lit8, Wnd" does that, yes. But that was not the instruction I wrote. See page 5-146 in the prog ref manual (DS70030E). (Your instruction is on page 5-149...) > 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. Two "MOV.B WREG, F" with a SWAP between since the MOV.B inst always copies the low byte. Or maybe start with a SWAP to get the high byte first, then another SWAP to get the low byte. Note, I have never written a single ASM30 line and this is only from reading the prog ref manual today, so there might be "better" ways to do it. Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist