Microprocessor 2
Microprocessor 2
Name of the Report: To obtain assembly code from Hexadecimal character. Print Single and
multiple ASCI character
Report No: 02
Prepared By –
Name: Zunayed Islam
ID: 18102012
Semester: Autumn-2020
Remarks:
Submitted To –
Mr. Atiqur Rahman
Assistant Professor
School of Science and Engineering (SSE)
Hexadecimal :
It is a base/positional number system used in mathematics and computer science.
It has a base of 16 and uses 16 unique alpha-numeric symbols with the numbers
zero to 9 to represent themselves and the letters A-F to represent the values 10
to 15.
Asci :
ASCII (American Standard Code for Information Interchange) is the most common
format for text files in computers and on the Internet. In an ASCII file, each
alphabetic, numeric, or special character is represented with a 7-bit binary
number (a string of seven 0s or 1s). 128 possible characters are defined.UNIX and
DOS-based operating systems use ASCII for text files.
Objective :
1. Covert Hexadecimal to Asci code.
Platform :
DosBox.
Machine code :
(Z:\>mount d d:/debugx)
The command mount is given so that we can recognise the folder D, and then we
(Z:\>d)
(D:\>cls)
mov : It takes 3 bits in memory and means to put some value in any
registor.
mov ah, 02 : This command assigns numerical value 2 decimal into the top
int 21 : After all the registors is set we call the interrupt to print the
character.
p is used.
mov ah, 09 This command assigns numerical value 2 decimal into the top
character
Conclusion :
Single and multiple characters from hexadecimal code to ASCI can be achieved.
Certain commands are given to perform the tasks. All this tasks are performed by
Assembly language. Assembly codes are a easier way rather than machine code.