In Assembly: 1 - Create 2 variables, one with the value of 30 and the other with the value of 20. Put the number 90 into the EAX register, and then add the first variable (with the value of 30) into the EAX register. Subtract the 2nd variable from the EAX register. What is the resulting value that is present in the EAX register? Don’t forget to call Dumpregs to show your output, and comment your code to label what your instructions are doing. 2 - Write code that puts the hexadecimal number “34” into the eax register, but the result should look like this: 00000034 3 - Make 2 variables, var1 and var2, and exchange their values. 4 - Write code that traverses (or goes through) the following array using the ESI register: .data arrayOfWords 1020h, 3040h, 5060h, 7080h, 9090h 5 - Write code that again, traverses the array, but this time using a loop. .data arrayOfWords 1020h, 3040h, 5060h, 7080h, 9090h
In Assembly:
1 - Create 2 variables, one with the value of 30 and the other with the value of 20. Put the number 90 into the EAX register, and then add the first variable (with the value of 30) into the EAX register. Subtract the 2nd variable from the EAX register. What is the resulting value that is present in the EAX register? Don’t forget to call Dumpregs to show your output, and comment your code to label what your instructions are doing.
2 - Write code that puts the hexadecimal number “34” into the eax register, but the result should look like this: 00000034
3 - Make 2 variables, var1 and var2, and exchange their values.
4 - Write code that traverses (or goes through) the following array using the ESI register:
.data
arrayOfWords 1020h, 3040h, 5060h, 7080h, 9090h
5 - Write code that again, traverses the array, but this time using a loop.
.data
arrayOfWords 1020h, 3040h, 5060h, 7080h, 9090h
Trending now
This is a popular solution!
Step by step
Solved in 2 steps