Question: Question# 2 ( 4 pts ) Using a single instruction, perform the following: ( 6 pts ) Convert an unpacked BCD digit in AL into

Question#2(4 pts)
Using a single instruction, perform the following: (6 pts)
Convert an unpacked BCD digit in AL into its ASCII code:
Given CF=0. Increment AL without using INC or ADD :
Reset the first 4 most significant bits in BX:
Set carry flag without affecting the other flags:
Question#3(8 pts)
Given the following code that allows the user to insert string from keyboard using DOS interrupt:
ORG 2000H
DATA1 DB 12,?,12 DUP(CCH)
MOV AH,0 AH
MOV DX, OFFSET DATA1
INT 21H
A- What's the contents of the following locations upon executing the code: 2000H : 2001H: 200CH :
B- If the user Inserts the string "COMPUTER" and presses the CR, what will be the contents of the following locations: 2001H:
200AH:
C- If DS =6F2EH. After the previous insertion, what's the physical address for the memory location holds the CR:
D- Using one instruction, change the CR in the string into letter S:
 Question#2(4 pts) Using a single instruction, perform the following: (6 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!