HP-28S
DEC Select decimal entry format and display all binary numbers in the stack in 
decimal notation with a trailing 'd'.
HEX Select hexadecimal entry format and display all binary numbers in the stack in 
decimal notation with a trailing 'h'.
OCT Select octal entry format and display all binary numbers in the stack in 
decimal notation with a trailing 'o'.
BIN Select binary entry format and display all binary numbers in the stack in 
decimal notation with a trailing 'b'.
STWS Use the real number N in stack level 1 to specify a new word size of N=1…64 
bits. N<1 is the same as N=1 and N>64 is the same as N=64.
A binary number cannot be passed to STWS!
RCWS Return the current word size.
RL Rotate the binary number in stack level 1 one bit left. The topmost bit 
becomes bit0. 
For this and the following commands the topmost bit is determined by the 
current word size.
RR Rotate one bit right. bit0 will be the topmost bit.
RLB Rotate ony byte left. The topmost 8 bits will become bits0-7.
RRB Rotate ony byte right. bits0-7 will become the topmost 8 bits.
R→B
Convert real number X into binary number.
If X<0 the result will be 0. If X>0xFFFFFFFFFFFFFFFF the result will be 
0xFFFFFFFFFFFFFFF reduced to the currently selected word size.
Note that reduction is carried out after conversion to a 64-bit integer. So if 
the word size is 4 and 17d is entered the result will be #1d.
B→R
Convert binary number to real. Some significant digits may be lost!
SL Shift one bit left. Inserts zero in bit0.
SR Shift one bit right. Inserts in the topmost bit.
SLB Shift one byte left. Inserts zero in bit0-7.
SRB Shift one byte right. Inserts zero in the topmost 8 bits.
ASR Shift one bit right. Duplicates the topmost bit and discards bit 0.
AND AND operation
OR OR operation
XOR XOR operation
NOT Invert all bits
11