ASR

Member Of Menu: 
Binary
Argument Types: 
Integer
Symbol
Expression
Result Type(s): 
Integer
Expression
Invertible: 
No
Valid In Expression: 
Yes
Stack Diagram: 
Integer1 Integer2
Symbol1 Expression2
Expression1 Expression2

This operation takes an integer from the stack, shifts each bit one position to the right. The lower bit is lost. If the old upper bit is a zero then a zero is shifted into the upper bit position (which depends on the current word size of the calculator) otherwise a one is shifted into the upper bit position. Assuming a 4 bit word size, then the binary number 1001 will become 1100 after this operation.

This operation stands for arithmetic shift right.