                                                                /* FRCBUG3.C
******************************************************************************
        String literals are not character arrays (as they should be).

        SMALL memory model, OPTIMIZE level 3
*****************************************************************************/
#include        <reg515.h>
#include        <stdio.h>

#define         STRINGLIT       "Hello"

void main(void)
{       SCON=0x58;
        TI=1;
        PCON |= 0x80;
        ADCON &= 0x7F;

        printf("Constant string as string: <%s>\n\r", STRINGLIT);
        printf("Constant string as characters: <%c> <%c> <%c> <%c> <%c>\n\r",
                STRINGLIT[0], STRINGLIT[1], STRINGLIT[2], STRINGLIT[3], 
                        STRINGLIT[4]);
        while(1); }

