October 6 university 2nd Year
Faculty of information system 2nd Term of 2017/2018
and computer science Assembly Language
_____________________________________________________________________________________
Sheet 1
1. Using emu8086 program:
a. Convert the following binary numbers into signed/unsigned decimal, hexadecimal
numbers and ASCII characters:
(1) 1111111101111110B (2) 10000010B (3) 0000000010000010B (4) 01111111B
b. Convert the following hexadecimal numbers into signed/unsigned decimal, binary
numbers and ASCII characters:
(1) 4161h (2) 80h (3) FF7Eh (4) 0082h (5) FFFFh (6) 7FFF
c. Convert the following unsigned/signed decimal numbers into binary, hexadecimal
numbers and ASCII characters:
(1) 130 (2) -130 (3) 28-1 (4) - 27
(5) 27-1 (6) 216-1 (7) – 215 (8) 215-1
d. Convert the ASCII characters of your name (first name, first letter of middle name
and family name) into binary, hexadecimal and decimal numbers.
2. Using the help of emu8086 program, learn the Assembly language mnemonics
(MOV, ADD, INC, DEC, SUB).
3. Using emu8086 program, write a program that perform the following:
a. Initialize the AX and BX registers by 100h and 200h respectively.
b. Add 50h from the contents of AX register then increase the result by one. Subtract
50h from the contents of BX register then decrease the result by one. Finally, swap
the data in the previous registers.
c. Save a data of 300h and 400h into the data segment memory locations addressed by
600h and its consecutive addresses respectively. Add the contents of the previous
memory locations, and save the result into the CX register.
d. Run the program and show the affected registers, flags and memory locations.
With My Best Wishes (Dr. Mamdouh F. M. Hendawy)