◄Up► ◄Contents► ◄Index► ◄Back► ──P-Code Instructions─────────────────────────────────────────────────────── Syntax Shr<t> /* Shift Word Logical Right by n bits */ Possible Instructions ShrW, ShrL See: ◄P-Code Data Types► Description Performs a right shift by one. It pops the top stack element off of the stack, shifts it right by one, and pushes the new value back onto the stack. Pseudocode equivalent: u2 = popW(); u1 = popW(); pushW(u1 >> u2); This can be generated as follows: uTest1 = uTest2 >> 1; /* generates ShrW */ -♦-