Objective of this assignmentThis is the first project written in assembly language. It will reinforce your understanding of addressing modes, storage directives, and the algorithms for converting between binary and ascii representations of integers.
Read the specifications carefully and be sure you understand them completely before you start writing the program.
I have provided a source file source file on the server containing code for two functions - charin and charout. charin reads one character from standard input and places it in the al register. charout writes to standard output the character currently in the al register.
The program should do the following:
* Prompt for the user to enter an 8 bit binary number.
* Read the user's input, storing it in a 8 character array for which storage was declared in the data section (call this xstring).
* Convert the characters that the user input to a 1-byte integer for which storage was declared in the data section (call this x).
* Convert the integer above to another 1-byte integer (call this y), for which storage was declared in the data section. This second integer has its bits in the reverse order from the one input by the user.
* Display x.
* Display the integer with the reversed bit sequence.
* Display the sum of x and y
* Display the bitwise AND of x and y
* Display the number of 1 bits in x
**x = 11001011
y = 11010011
x has 5 1-bits.
All prompts (e.g. "x> ") and all strings for display (e.g. the "x+y=") should be stored in the data section.
Normally the program would involve the use of several loops with fixed count. Since we will not have covered the assembly language syntax for looping by the time you work on the program, instead of loops simply repeat the code that would have been the body of the loop. The files you submit should include main.s, io.s, and a makefile.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
running on Windows xp in codewarrior