Question: Question 5(22points) Translate the high-level language code below into assembly instructions. The variables A, B, C, D, E and F are located in the memory.
Question 5(22points) Translate the high-level language code below into assembly instructions. The variables A, B, C, D, E and F are located in the memory. Try to minimize the number of instructions in the assembly code that you write.
=()/(+)
a) (10 points)Write the code for an accumulator architecture.
b) (12points)Write the code for a stack architecture. Assume that the division (subtraction) operation divides (subtracts) the topmost value in the stack by the second topmost value. Also, assume that only the Only the data goes on the stack.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
