write an assembly program that reads an integer


Write an Assembly program that reads an integer (-32,768 through 32,767) in decimal and prints its equivalent in binary. The output must show all 16 bits. And you must use a loop for producing and outputing the bits. You must also use only local variables.
For example, if the input is 120, output should be: 0000000001111000.

If the input is smaller than -32,768 or larger than 32,767, print an error message and read another number until a number in the required range is entered...

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: write an assembly program that reads an integer
Reference No:- TGS0154694

Expected delivery within 24 Hours