Create an HLA Assembly language program that prompts for three integers from the user. Create and call a function that determines if the sum of all three values is even and then sets DX to one if the sum is even; otherwise, set DX to zero. In order to receive full credit, after returning back to the caller, your function should not change the value of any register other than DX
Create an HLA Assembly language program that prompts for three integers from the user. Create and call a function that determines if the sum of all three values is even and then sets DX to one if the sum is even; otherwise, set DX to zero. In order to receive full credit, after returning back to the caller, your function should not change the value of any register other than DX. Implement the function whose signature is:
procedure sumIsEven( value1 : int8; value2 : int8; value3 : int8 ); @nodisplay; @noframe;
Here are some example program dialogues to guide your efforts:
Provide a value: 3
Provide a value: 8
Provide a value: 12
sumIsEven returned false!
Provide a value: 8
Provide a value: 3
Provide a value: 3
sumIsEven returned true!
Step by step
Solved in 5 steps