Relative Content

Tag Archive for assemblyascii

Unexpected behavior with x86 64-bit nasm assembly ascii validation

I am pretty new to assembly and currently trying to write a programm that executes a caesar encryption with a user specified key and user specified content. The key and the content have to be a-z or A-Z and to verify that, I build a simple algorithm checking if the ascii value is in the corresponding range. The problem is that even when given normal characters a-z or A-Z, it still returns false.