The Binary Keypad
(Just
the keypad is shown, Click the keypad to see the entire calculator and use your Web browser's Back
button to return to this page.)
This is a binary
calculator for manipulating binary integers up to 64 bits long.
Throughout this web page and the RPN Engineering Calculator Help
file, for the sake of clarity, Binary will indicate any Binary number, be it binary (base 2), hexadecimal, octal, or Binary decimal, and lower case binary will refer to the base 2 Binary number.
Use the wordsize [wrdsze] button to set any wordsize from 4 to
64, and the [Mod] button to retrieve the remainder after a division (if there is
no remainder the button won't be available). Following is a list of what each of
the functions does:
dec: Display current Binary or real number in the x-register as Binary decimal.
hex: Display current Binary or real number in the
x-register as hexadecimal.
oct: Display current Binary or real number in the
x-register as octal.
bin: Display current Binary or real number in the
x-register as binary.
AND: Returns the logical AND of the Binary numbers in the
x and y registers, the numbers do not have to be in the same base.
OR: Returns the logical OR of the Binary numbers in the x
and y registers, the numbers do not have to be in the same base.
XOR: Returns the logical XOR (exclusive OR) of the Binary
numbers in the x and y registers, the numbers do not have to be in the same
base.
NOT: Returns the ones complement of the Binary number in
the x-register.
rL: This function performs a 1 bit left rotate on the Binary integer
in the x-register, the leftmost bit, based on the current wordsize, will become
the rightmost bit.
rR: This function performs a 1 bit right rotate on the Binary integer
in the x-register, the rightmost bit, based on the current wordsize, will become
the leftmost bit.
rLB: This function performs a 1 byte left rotate on the Binary integer
in the x-register, the leftmost byte, based on the current wordsize, will become
the rightmost byte (this has the same effect as performing a 'rL' repeated 8
times).
rRB: This function performs a 1 bit right rotate on the Binary integer
in the x-register, the rightmost bit, based on the current wordsize, will become
the leftmost bit. (this has the same results as performing a 'rR' repeated 8
times).
sL: This function performs a 1 bit left shift on a Binary integer (set to the current word size) in the x-register, the leftmost (high) bit is lost, the rightmost (low) bit of the results is set to zero. Shift Left is equivalent to Binary multiplication by two, truncated to the current word size.
sR: This function performs a 1 bit right shift on a Binary integer (set to the current word size) in the x-register, the
rightmost (low) bit is lost, the leftmost (high) bit of the results is set to zero. Shift
right is equivalent to Binary division by two, truncated to the current word size.
sLB: This function performs a 1 byte left shift on a Binary number (set to the current word size) in the x-register. This is equivalent to 'sL' repeated 8 times. The result is equivalent to Binary multiplication by #100h, truncated to the current word size.
sRB: This function performs a 1 byte right shift on a Binary number (set to the current word size) in the x-register. This is equivalent to 'sR' repeated 8 times. The result is equivalent to Binary division by #100h.
R:B: (Real to Binary) Convert a real integer number, greater than zero and less than 1.84467440737e19 to its Binary equivalent. Or,
convert the Binary number in the x-register to a real integer.
ASR: This function performs a 1 bit arithmetic right shift on the Binary number in the x-register. The most significant bit (set to the current word size) retains its value and a right shift is performed on the remaining bits.
F: Places a hex "F" in the working register, if the
"#" delimiter has been invoked.
E-#: Places a hex "E" in the working register, if the
"#" delimiter has been invoked. Or (with the Shift key) places the
"#" delimiter in the working register.
A-d: Places a hex "A" in the working register, if the
"#" delimiter has been invoked. Or (with the Shift key) places the
"d" base marker in the working register.
B-h: Places a hex "B" in the working register, if the
"#" delimiter has been invoked. Or (with the Shift key) places the
"h" base marker in the working register.
C-o: Places a hex "C" in the working register, if the
"#" delimiter has been invoked. Or (with the Shift key) places the
"o" base marker in the working register.
D-b: Places a hex "D" in the working register, if the
"#" delimiter has been invoked. Or (with the Shift key) places the
"b" base marker in the working register.
Return to RPN
Home
Last updated 04/30/2008