Question: ( a ) Learn about the various bit operators: AND, OR , XOR, NOT Type the examples as shown in class. Usage: Convert Uppercase letters
a Learn about the various bit operators: AND, OR XOR, NOT
Type the examples as shown in class.
Usage: Convert Uppercase letters to LowerCase and vice versa.
ToDo: Do the LowerCase procedure on your own.similar to the way its shown in class points
Here is my work so far but im having trouble converting the letters to lower case. i thought it would be as simple as inserting FDh but i was wrong. please help :
Include Irvineinc
;Uppercase to lowercase
model flat,stdcall
stack
ExitProcess proto,dwExitCode:dword
data
source byte "Hello JJDDH me OPASH kHHHHsdf
target byte SIZEOF source DUP
sz dword
code
main proc
mov edx, offset source
call writestring ;displays original msg
call converttoUC
call crlf
call crlf
mov edx, offset source
call writestring ;displays new version of msg
invoke ExitProcess,
converttoUC proc
mov ecx, sizeof source
dec ecx ;do one less because of null
mov esi,
LP:
mov AL sourceesi ;initialize esi to
OR ALh ;used h because its equal to b
mov sourceesi AL
inc esi ;increase esi to move to the next letter
loop LP
ret
converttoUC endp
invoke ExitProcess,
main ENDP
END main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
