Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions