<<< ATOI_ITOA_DEMO.ASM | Index | >>> |
Write an assembly program that
Inputs two 8-bit unsigned integers from the user, calculates the sum of the two numbers, and prints the result on the screen.
Inputs two 32-bit signed integers from the user, calculates their difference, and prints the result.
Make sure that the program handles every possible error condition that you can think of:
Bad input formats.
Sum and difference overflow conditions .
In case of an error, have the user retry the input and repeat the calculation.
Every CPU instruction in your program must have a brief comment!
The penalty for not following this rule is 15 pts deduction...
What to submit:
Submit only your ASM source file (not the EXE or project.)
<<< ATOI_ITOA_DEMO.ASM | Index | >>> |