Question: 1 . ( 4 0 points ) Translate the high - level language code below into assembly instructions. The variables A , B , C
points Translate the highlevel language code below into assembly instructions. The variables
A B C D E and F are located in the memory and can be accessed by their label eg LOAD R A
will load A from the memory into R Minimize the number of instructions in the assembly code that
you write.
F XYZWLW
a Write the code for an accumulator architecture
b 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.
c Write the code for a registermemory architecture
d Write the code for a loadstore architecture
e Compare and count the number of instructions and memory accesses between the different
ISAs in the previous parts of the questions a b c and d points Translate the highlevel language code below into assembly instructions. The variables
A B C D E and F are located in the memory and can be accessed by their label eg LOAD R A
will load A from the memory into R Minimize the number of instructions in the assembly code that
you write.
F XYZWLW
a Write the code for an accumulator architecture
b 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.
c Write the code for a registermemory architecture
d Write the code for a loadstore architecture
e Compare and count the number of instructions and memory accesses between the different
ISAs in the previous parts of the questions a b c and d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
