CS401 Assembly Language Programming

Computer Architecture and Assembly Language Programming (CS401)
Assignment # 03

Questions Statement

You have to write an assembly language code that will:

  • Read a character (ASCII code) from keyboard using a BIOS interrupt.
  • You have to print that ASCII character in binary number system using DOS interrupt.
  • Then you have to invert that ASCII code and have to transmit it to a parallel port using a DOS interrupt.

For example,

  • If the you pressed ‘a’. Whose ASCII code is 61h (in hex).
  • You have to print the equivalent of 61h which is (1100001)2 in binary.
  • Then you have to invert the ASCII code so 11000012 will become 00111102.
  • At the end you have to transmit 00111102 to a parallel port.

Answer Detail

Get This Answer

Invite Tutor