Programmer Tape
2進数計算機 — 2進数・16進数・10進数変換&論理演算 | Cruse
プログラマー向けの2進数・16進数・10進数・8進数の相互変換、四則演算、およびビット演算(AND, OR, XOR, NOT)ツール。
ツールの使い方
Select Word Size & Signed Mode
Choose your architecture register width: 64-bit (QWORD), 32-bit (DWORD), 16-bit (WORD), or 8-bit (BYTE). Toggle Signed (Two’s complement) or Unsigned.
Choose Input Base & Type Numbers
Click HEX, DEC, OCT, or BIN to set the active entry mode. Keypad buttons automatically enable or disable based on the selected numeral base.
Perform Bitwise Math or Click Bits
Execute bitwise logic (AND, OR, XOR, NOT, LSH, RSH) or click directly on individual bits in the interactive bit-flipper matrix to toggle bits on the fly.
技術仕様・標準規格
| Parameter / Standard | Specification |
|---|---|
| Register Word Sizes | 64-bit QWORD, 32-bit DWORD, 16-bit WORD, 8-bit BYTE |
| Numeral Bases Supported | Hexadecimal (Base 16), Decimal (Base 10), Octal (Base 8), Binary (Base 2) |
| Bitwise Logic Operations | AND, OR, XOR, NOT, Bit Clear, Two’s Complement Negation |
| Bit Shifting & Rotation | Left Shift (<<), Right Shift (>>), Rotate Left (ROL), Rotate Right (ROR) |
| Numeric Range (64-bit) | Unsigned: 0 to 18,446,744,073,709,551,615 | Signed: -9.22 × 10¹⁸ to +9.22 × 10¹⁸ |
| Interactive Bit Matrix | Direct clickable nibble-grouped bit flipper with instantaneous base synchrony |
| Computation Engine | Native JavaScript BigInt engine. Zero floating-point rounding or precision truncation. |
よくある質問
How does two’s complement signed representation work?
In two’s complement, the most significant bit (MSB) serves as the sign flag. If MSB is 0, the number is positive. If MSB is 1, the number represents a negative value equal to the inverted bits plus 1. This allows digital CPU circuits to execute addition and subtraction with identical hardware logic.
Why does the keypad disable certain letters or numbers when I switch modes?
Each numeral base only allows valid digits in that radix. Binary (Base 2) only accepts 0 and 1. Octal (Base 8) accepts 0 through 7. Decimal (Base 10) accepts 0 through 9. Hexadecimal (Base 16) accepts 0 through 9 and A through F. Invalid keys are automatically disabled to prevent formatting syntax errors.
Can I flip individual bits on the screen?
Yes! The interactive bit matrix below the displays shows every bit organized into 4-bit nibbles and 8-bit bytes. Simply click on any 0 or 1 bit to toggle it. All HEX, DEC, OCT, and BIN representations update instantaneously.
What is the difference between QWORD, DWORD, WORD, and BYTE?
These terms denote standard computer architecture word widths: BYTE is 8 bits (1 byte), WORD is 16 bits (2 bytes), DWORD (Double Word) is 32 bits (4 bytes), and QWORD (Quad Word) is 64 bits (8 bytes). Switching word size clamps and masks calculations to that specific hardware width.