You are on page 1of 6

Lab Task: - 4

Name: -

Waqar Ghafoor
Roll No: -

BCSM-F18-079
Class: -

BSCS-5A
Subject: -

Assembly Language
Submitted To: -

Sir Usman
Task 1:
Program that multiply the contents of AL by 8 using SHL instruction.
Solution: -
Code

Output: -
Task 2:
Program that reads a binary number, reverse its bit pattren and display it.
Solution: -
Code

Output: -
Task 3:
Program that reads a binary number, stores it in BX and display it.
Solution: -
Code

Output: -
Task 4:
Program that prompts the user to enter a character, and on subsequent lines print its ASCII
code in binary.
Solution: -
Code
Output: -

You might also like