Question: 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.
 suppose certain registers have ASCII code for a an alphabetical character

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!