Final answer:
To write a program to evaluate the arithmetic expression (13x - 4xy + 18)/7 using symbolic addresses and registers for memory operations.
Step-by-step explanation:
To write a program to evaluate the arithmetic expression: (13x - 4xy + 18)/7, you need to use symbolic addresses x, y, answer, and remainder. Put values for x and y in the .data section of your program followed by two locations for answer and remainder.
Use two registers for x and y and load them from memory. At the end of the program, store the answer and remainder to memory.
Make sure to follow the rules for sign conventions when evaluating the expression. For example, when two positive numbers multiply, the answer has a positive sign, when two negative numbers multiply, the answer also has a positive sign, and when the two numbers multiplied have opposite signs, the answer has a negative sign.