Skip to main content
\(\newcommand{\doubler}[1]{2#1} \newcommand{\binary}{\mathtt} \newcommand{\hex}{\mathtt} \newcommand{\octal}{\mathtt} \newcommand{\prog}{\mathtt} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section14.7Programming Exercises

1

Write a program in assembly language that asks the user to enter an unsigned integer, adds \(1\) to the number, and displays the result.

Solution
2

Modify the uIntToDec function (Listing 14.6.1) that you used in Exercise 14.7.1 to use the mls instruction for computing the remainder.

Solution
3

Write a program in assembly language that asks the user to enter a signed integer, adds \(1\) to the number, and displays the result.

Hint Solution