/************************************************************************
*									*
*         Convert Lower Case ASCII Into Upper Case (C Version)          *
*									*
************************************************************************/

/*  Authors:  Saeid Nooshabadi and John Zaitseff
    Date:     5th April, 2003
    Version:  1.3

    This very simple program converts the lower case character in "lower"
    into upper case by subtracting 0x20.

    It is best to compile this code WITHOUT optimisation, so as to see the
    subtraction instruction.  If this code IS compiled with optimisation,
    the GNU C Compiler is smart enough to figure out what the code is
    doing, and so simplifies that code!
*/


char main (void)
{
    char lower = 'a';	    /* 'a' is used as an example of a character */
    char upper;

    upper = lower - 0x20;   /* Lower-case and upper-case ASCII characters are
			       separated by 0x20, ie, 32 */

    return upper;	    /* main() is called by the Operating System */
}

