export_week 8 instruction set architectures Flashcards
,
Instruction Set Architectures, what do it do?
ISA
ISA determines instruction formats
,
– The LMC is a
one-address architecture (an accumulator-based machine).–
e.g., the instruction ADD X
,
other instructions set and why
There are other instruction set architectures, all based on the number of
explicit operands .
0-address (stack)
1-address (accumulator)
2-address
3-addres
,
0-Address Machines
– All operands for binary operations are implicit on the stack. Only push/pop
reference memory.
– e.g., calculating
a = a * b + c – d * e
,
1-Address Machines
Accumulator is a source and
destination. Second source is
explicit.
,
1-Address Machines
10 memory
references, not
including
instruction fetch
,
2-Address Machines
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_245-14A61F370A37A2BD282.png
,
2-Address Machines
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_246-14A61F45B74229CEDAE.png
,
2-Address Machines with registers ?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_247-14A61F50C171EEB8E26.png
,
3-Address Machines
– One destination operand,
two source operands,
all explicit
,
3-Address Machines eg without registers ?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_248-14A61F622D5078C6512.png
,
3-Address Machines without registers?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_249-14A61F7191F1FB1AE34.png
,
6 memory accesses;
general purpose
registers make a
substantial
difference.
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_250-14A61F8185A11F9B07D.png
,
Comparison
– Assume 8 registers (3 bits),
- 32 op-codes (5 bits), 15-bit addresses,
- 16-bit integers.
– Which ISA accesses memory the least?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_251-14A61F9BCDF25EF0299.png
,
0-address
(stack)