Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

suppose certain registers have ASCII code for a an alphabetical character and give logical instruction to change character in the register to lower case IF

suppose certain registers have ASCII code for a an alphabetical character and give logical instruction to change character in the register to lower case IF its upper case.
(Mind that result is in hex and justify the answer)
16-18. Suppose AL, BL, and CL contain ASCII code for some alphabetical character.
Note that ASCII for 'A' and 'B' are 41h and 42h, and ASCII for 'a' and 'b' are 61h and 62h.
Give a logical instruction to change the character in AL to lower-case if it is upper-case. (No change if it is already lower-case.)
Instruction:
Justify your answer or show work.
If AL had 'D', after value in AL:,(in hex) Show work.
Give a logical instruction to change the character in BL to upper-case if it is lower-case. (No change if it is already upper-case.)
Instruction:
Justify your answer or show work.
If BL had 'f', after value in BL: (in hex) Show work.
Give a logical instruction to change the character in CL to upper-case if it is lower-case and change it to lower if is upper.
Instruction:
Justify your answer or show work.
If CL had 'H', after value in CL : (in hex) Show work.
Give an "and" instruction that replaces a number in DX with the remainder of the number when divided by 32.
Instruction: .
Justify your answer or show work.
If DX had 345d, after value in DX: 'in hex) Show work.
Suppose the register CH contains an unsigned number whose value is between 0 and 9.
Note that ASCII for the characters, '0','1' and '9' are 30h,31h, and 39h.
Write a logical instruction to convert the value in CH to the ASCII for the decimal digit corresponding to the value.
Instruction:
Justify your answer or show work.
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

Students also viewed these Databases questions

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago