CS 272 -- Assembly Language Programming

Programming assignment #3

Due:  5 October 2000

Write a program which will

  1. Display a ? prompt using int 21h, function 2.
  2. Input a valid unsigned base 10 integer (0 - 65535) from the keyboard (using int 21h, function 1 in a loop)
  3. Convert the sequence of characters read into the equivalent binary number, stored in register BX
  4. Output the hexadecimal form of the number using your instructor's HEX_OUT macro.
Sample I/O:

? 10
000A

Another sample:

? 61453
F00D

Be sure to document your program using appropriate comments.