. The opcode is always one byte.- n'ts All memory addresses are two bytes, using direct addressing. (That is, a two-byte field in the machine code is a direct pointer to a data memory with 21 words.) In the data memory, assume A is at address 0x0F01, B is at 0xOF02, C is at 0xOF03, and D is at 0xOF04 .All data operands are four bytes (that is, 32 bits). .Each architecture uses a fixed length instruction set (that is, every instruction used by that architecture has the same integer number of bytes). Question 1. Machine code for the four instruction set architectures |A C CA+B) D (a) How many bytes are needed for each instruction for the accumulator architecture? Show how you would arrange the fields for the instructions LOAD A and MUL C. machine code for these instructions in hexadecimal, assuming LOAD has the opcode 0x00 and MUL has the opcode 0x03. f C= 5 Show the resulting (b) How many bytes are needed for each instruction for the stack architecture? Show how you would arrange the fields for the instructions POP A and ADD. Show the resulting machine code for these instructions in hexadecimal, assuming POP has the opcode 0x01 and ADD has the Ic= g opcode 0x02. (c) How many bytes are needed for each instruction for the two-address load-store architecture? c=g for the instructions STORE A, R2 and ADD R2, RI . Show the resulting machine code for these Assume it has 32 working registers in the register file. Show how you would arrange the fields instructions in hexadecimal, assuming STORE has the opcode 0x01 and ADD has the opcode 0x02 (d) How many bytes are needed for each instruction for the three-address memory-memory architecture? Show how you would arrange the fields for the instructions ADD A, A, B and MUL A, A, C. Show the resulting machine code for these instructions in hexadecimal, assuming ADD has the opcode 0x00 and MUL has the opcode 0x01. IC-3 . The opcode is always one byte.- n'ts All memory addresses are two bytes, using direct addressing. (That is, a two-byte field in the machine code is a direct pointer to a data memory with 21 words.) In the data memory, assume A is at address 0x0F01, B is at 0xOF02, C is at 0xOF03, and D is at 0xOF04 .All data operands are four bytes (that is, 32 bits). .Each architecture uses a fixed length instruction set (that is, every instruction used by that architecture has the same integer number of bytes). Question 1. Machine code for the four instruction set architectures |A C CA+B) D (a) How many bytes are needed for each instruction for the accumulator architecture? Show how you would arrange the fields for the instructions LOAD A and MUL C. machine code for these instructions in hexadecimal, assuming LOAD has the opcode 0x00 and MUL has the opcode 0x03. f C= 5 Show the resulting (b) How many bytes are needed for each instruction for the stack architecture? Show how you would arrange the fields for the instructions POP A and ADD. Show the resulting machine code for these instructions in hexadecimal, assuming POP has the opcode 0x01 and ADD has the Ic= g opcode 0x02. (c) How many bytes are needed for each instruction for the two-address load-store architecture? c=g for the instructions STORE A, R2 and ADD R2, RI . Show the resulting machine code for these Assume it has 32 working registers in the register file. Show how you would arrange the fields instructions in hexadecimal, assuming STORE has the opcode 0x01 and ADD has the opcode 0x02 (d) How many bytes are needed for each instruction for the three-address memory-memory architecture? Show how you would arrange the fields for the instructions ADD A, A, B and MUL A, A, C. Show the resulting machine code for these instructions in hexadecimal, assuming ADD has the opcode 0x00 and MUL has the opcode 0x01. IC-3