【Lecture6】Computer Systems & Networks
History of Computing

Assembly Language
ラベル、インストラクション、インプットの3つに分かれる。

Example 1
bra start: これは、スタートを意味する
.org $0010: これは、改行を意味する($0010のとこから始めるよっていう、ちなみに$はhexadecimalを意味する)
x .byte 3: これは、バイナリーでxに3をassignすることを意味する
sum .byte 0: これは、xとyの合計を表示している
start ldaa x: xをCPUに挿入(Aに挿入)
adda y: yをxに足す(Aに加える)
staa sum: the mnemonic for a machine language instruction which stores a copy of the byte held in the accumulator at the RAM or I/O address specified.
Subtraction

Logical Operations

Logical Operation | Instruction | Example |
NOT | com_ | coma |
AND | and_VAR | anda x |
OR | ora_VAR | oraa x |
XOR | eor_VAR | eorax |
NAND | Use com with and | |
NOR | Use com with ora | |
XNOR | Use com with eor |
NOT
F3: 11110011
NOT: Output is the reverse of the input
Answer: 00001100 ($0C)
AND
C3: 11000011
D9: 11011001
AND: Output true if ALL inputs are true
Answer: 11000001 (C1)
OR
16: 00010110
F3: 11110011
OR: Output true if ANY input is true
Answer: 11110111 (F7)
XOR
16: 00010110
F3: 11110011
XOR: 両方の数字が違ければ1
Answer: 11100101 (E5)
NAND
16: 00010110
F3: 11110011
NAND: The opposite of the And (Andをした後にNOTをする)
Answer: 11101101 (ED)
NOR
16: 00010110
F3: 11110011
NOR: The opposite of the Or (Orをした後にNOTをする)
Answer: 00001000 (08)
XNOR
16: 00010110
F3: 11110011
XNOR: XORをした後にNOTをする
Answer: 00011010 (1A)