IDENTIFIERS

IDENTIFIERS

1)  Identifier Format

C-- identifiers must start with either an underscore (_) or an upper or lower
lower case letter.  The then may be followed by any combination of
underscores, upper or lower case letters or numerical digits (0 to 9).  The
total length of an identifier may not exceed 32 characters.

Some examples of valid C-- indentifiers are:

_DOG
CoW
loony12
HowdYBoys_AND_Girls
WOW___
x

Some examples of invalid C-- indentifiers are:

12bogus       * cannot start an identifier with a numerical digit *
wowisthisalongidentifieryupitsureisnotOK  * identifier length exceeds 32 *
y_es sir      * spaces not allowed *
the-end       * hyphens not allowed *
2)  Reserved Identifiers

The following is a list of C-- reserved identifiers which can not be used as
general identifiers for they have already been defined or reserved for other
language purposes:

    byte    word    char    int     dword   long
    fixed32s        fixed32u

    if      loop    return  do      while   else    interrupt
    void    enum    inline  CARRYFLAG       ELSE    EXTRACT
    FALSE   FROM    IF      NOTCARRYFLAG    NOTOVERFLOW
    OVERFLOW        TRUE    ZEROFLAG        NOTZEROFLAG
    far

    __CODEPTR__     __DATAPTR__     __POSTPTR__     __COMPILER__
    __DATESTR__     __YEAR__        __MONTH__       __DAY__
    __HOUR__        __MINUTE__      __SECOND__      __WEEKDAY__
    __VER1__        __VER2__

    ESBYTE  ESWORD  ESCHAR  ESINT   ESDWORD ESLONG
    ESFIXED32S      ESFIXED32U
    CSBYTE  CSWORD  CSCHAR  CSINT   CSDWORD CSLONG
    CSFIXED32S      CSFIXED32U
    SSBYTE  SSWORD  SSCHAR  SSINT   SSDWORD SSLONG
    SSFIXED32S      SSFIXED32U
    DSBYTE  DSWORD  DSCHAR  DSINT   DSDWORD DSLONG
    DSFIXED32S      DSFIXED32U
    FSBYTE  FSWORD  FSCHAR  FSINT   FSDWORD FSLONG
    FSFIXED32S      FSFIXED32U
    GSBYTE  GSWORD  GSCHAR  GSINT   GSDWORD GSLONG
    GSFIXED32S      GSFIXED32U

    AX  CX  DX  BX  SP  BP  SI  DI
    AL  CL  DL  BL  AH  CH  DH  BH
    ES  CS  SS  DS  FS  GS  HS  IS
    EAX ECX EDX EBX ESP EBP ESI EDI

    CR0 CR1 CR2 CR3 CR4 CR5 CR6 CR7
    DR0 DR1 DR2 DR3 DR4 DR5 DR6 DR7
    TR0 TR1 TR2 TR3 TR4 TR5 TR6 TR7

This list can be obtained from the C-- compiler at anytime by running it
with the /KEYWORDS command line option.


Internal Architecture of 8086 Microprocessor


Post a Comment

0 Comments