Write an assembly language program that reads bytes from


Instructions -

Write an assembly language program that reads bytes from standard input and prints hexadecimal digits representing the binary bytes of the input. Test your program by feeding it files using Linux shell input redirection.

Note: even plain text, as typed by the user, is actually binary data, in the form of ascii codes for the characters (in other words all data is, in the end, binary data -- everything else is interpretation or visualization)

Include a constant in your program that you can easily change to control the number of hex bytes to display per line.

As part of writing this program, it will help to use the shift and/or bitwise logic instructions.  I have not shown you those yet in videos yet, but they are fairly easy (see tips below).

Test your program reasonably thoroughly.  Be sure to change the number of bytes per line and rebuild your program to repeat these tests:

  • run it with interactive input typed by the user (you)
  • feed it text files (be sure to show me the text files that it receives as input)
  • feed it it's own source code (.asm) file!
  • feed your program itself!!!! (the executable)
  • just for fun, use pipes to feed the output of your program back into itself

Attachment:- Assignment File.rar

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Write an assembly language program that reads bytes from
Reference No:- TGS02656143

Expected delivery within 24 Hours