Computer Architecture and Organization

Concept of computer architecture, operation, and organization

Biner

Bit, Byte, Bytestream

Hexadecimal

  • Representasi angka 0-15 menjadi sebuah karakter
Biner Hex Decimal
0000 0 0
0001 1 1
0010 2 2
0011 3 3
0100 4 4
0101 5 5
0110 6 6
0111 7 7
1000 8 8
1001 9 9
1010 A 10
1011 B 11
1100 C 12
1101 D 13
1110 E 14
1111 F 15
  • Bisa disatukan menjadi 0-255 dengan memakai format XX
    Contoh: FF = 1111 1111 = $16 \times 15 + 15 = 255$

Aritmatika Bitwise

  1. OR

  2. XOR

    • a ^ b atau a ⊕ b
    • Exclusive OR
    • Jika di OR selama ada satu TRUE (1) hasilnya TRUE (1), di XOR hasil hanya akan TRUE (1) jika a dan b berbeda
a b a ^ b
1 1 0
1 0 1
0 1 1
0 0 0

Lampiran: ASCII Table