News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to capitalize an ASCII letter

Started by Larry Hammick, November 10, 2009, 05:41:03 PM

Previous topic - Next topic

Larry Hammick

AND                                    AL,                                        NOT("A" XOR "a")

and don't forget to tab halfway across the screen for each new operand.

oex

sub al,32  ::)

Funnily enough gave me an idea for something else though...  :bg
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

BogdanOntanu

Was this post really intended for the Colosseum ?

IF the ASCII char value is already in range of A... Z THEN

OR AL,20h ; to lower case
AND AL,0DFh ; to upper case, in fact AND AL, (NOT 20h)


sorry for no TAB's
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

oex

We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

Larry Hammick

I put in in the Colosseum on the grounds that it's just a sarcastic mockery of the pedantry that we sometimes see in the software world.  :toothy IMO it has no place in the Laboratory. ::)