Rot-13: Difference between revisions

329 bytes added ,  12 years ago
no edit summary
No edit summary
Line 2,559:
xor ebx,ebx ; exit code
int 80h</lang>
 
=={{header|XPL0}}==
Usage: rot13 <infile.txt >outfile.txt
<lang XPL0>code ChIn=7, ChOut=8;
int C, CC;
repeat C:= ChIn(1); CC:= C&~$20; \CC handles lowercase too
ChOut(0, C + (if CC>=^A & CC<=^M then +13
else if CC>=^N & CC<=^Z then -13
else 0));
until C = $1A; \EOF</lang>
 
=={{header|XSLT}}==
772

edits