Open notepad and enter the code for a program that calculates the following arithmetic expression:
x = a + b + c - d - e + f
The operands a, b, c, d, e, f, and x should be declared as words. Give random values to a, b, c, d, e, and f in order to test the program. Load the data onto registers, perform the arithmetic operations and store the result to the memory location reserved for x.
.data
#enter your data here
.text
main: #enter your code here
addi $v0, $0, 10 #exit program
syscall