Shop OBEX P1 Docs P2 Docs Learn Events
How exactly does the "movi" instruction work? — Parallax Forums

How exactly does the "movi" instruction work?

Patrick1abPatrick1ab Posts: 136
edited 2010-11-05 14:00 in Propeller 1
I would like to copy the 9 LSBs of one register to the 9 MSBs of another register, without changing any other bits.

Is this what "movi" does?

for example:
rgb  := %00110100_00010000_01000001_11111111
arg0 := %00000000_01101010_11101011_10100011

movi   arg0, rgb

(new arg0 = %11111111_11101010_11101011_10100011)

Comments

Sign In or Register to comment.