Question: 7. Write the code to implement the expression A = B + C-(DE), on three ISA Basic classes: Stack architecture, Memory-to-Memory (3 address) architecture and

 7. Write the code to implement the expression A = B

7. Write the code to implement the expression A = B + C-(DE), on three ISA Basic classes: Stack architecture, Memory-to-Memory (3 address) architecture and Accumulator architecture. The instruction sets are: 1) Stack -push, pop, add, sub, mul, and div; 2) Memory-to-Memory (3 address) - add, sub, mul, and div; and 3) Accumulator - lda, sta, mul, add, sub, and div Assuming that operand addresses are 2 bytes, data values are 4 bytes, and opcode is 1 byte, compute the memory traffic the program would generate when it executes. For multiplication, it is assumed that 'n-byte x n-byte' produces 'n-byte.' When you compute the amount of memory traffic generated by the program, compute separately the amount of traffic due to fetch (fetch instruction) and execute (fetch data and store) using the following table as an example. Ex) Memory Traffic form for Stack, Memory-to-Memory, and Accumulator Architecture Execute Stack, Memory-to- Memory, or Accumulator Architecture Fetch Instruction Fetch Operands Store (ST) (Fetch) (FO) Total

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!