Question: Write a program in assembly language that will - read in four integers you will need to call the routine ReadInt four times one number
Write a program in assembly language that will
- read in four integers
you will need to call the routine ReadInt four times
one number per line
this routine reads a value from the keyboard and stores it in EAX
call ReadInt
mov Num, eax
- if the integers are A, B, C, and D, compute
A - B + C - D
(Note: C is a reserved word so you cannot use it as an identifier!)
- print out the integers and the result
use the routine WriteInt which will display the contents of the register EAX on the screen as a signed decimal
mov eax, Num
call WriteInt
Use the following set of integers (in decimal):
42, -5, -23, 35
Use only the instructions covered so far. (Don't use looping!)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
