Question: I am working on ROT13 program with linux. I have to use I/O such as Stdin and Stdout, so i am using Read and write.

I am working on ROT13 program with linux.

I have to use I/O such as Stdin and Stdout, so i am using Read and write.

The code in the Read section as below

--------------------------------------------------------------

mov eax,3

mov ebx, 0

mov ecx,Buff

mov edx,1

int 80h

cmp eax,0

je,exit

cmp byte[Buff],41h

jb Write

cmp byte [Buff],7Ah

ja Write

---------------------------------------------------------------------

I don't know how to compare the upper case letters and lower case letters seperately.

For example, if i put "Hello. My name is Bob.", i have to get "Uryyb. Zl anzr vf Obo."

Please help me out.

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!