Toy Machine Flashcards
1
Q
Opcode
0
A
halt - exit
2
Q
Opcode
1 add 1 R[d] <- R[s] + R[t]
A
3
Q
Opcode
1 add 1 R[d] <- R[s] + R[t]
2 subtract 1 R[d] <- R[s] - R[t]
A
4
Q
3 and 1 R[d] <- R[s] & R[t]
A
5
Q
4 xor 1 R[d] <- R[s] ^ R[t]
A
6
Q
5 left shift 1 R[d] <- R[s] «_space;R[t]
A
7
Q
6 right shift 1 R[d] <- R[s]»_space; R[t]
A
8
Q
7 load address 2 R[d] <- addr
A