Case sensitive strings
Posted: Sun Dec 19, 2004 6:31 am
I've made a simple DOS style interface for my OS that can process commands like "cls" and "ver" but I also want it to be able to process these commands no matter what case they are in. For example, I want all of the following to do the same thing:
CLS
cls
Cls
clS
etc.
The command is stored in a buffer and is compared with a command string:
cmdCls DB "cls", 0x00
Is there an easy way of eliminating the case sensitivity?
CLS
cls
Cls
clS
etc.
The command is stored in a buffer and is compared with a command string:
cmdCls DB "cls", 0x00
Is there an easy way of eliminating the case sensitivity?