Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CPU Type Equate
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   @Cpu
 
  See also: PUSHCONTEXT, Processor Selection Directives
 
  Description:
 
     Predefined equate returning the type of processor selected by the
     previous processor directive (8086 is the default). Bits are set
     for each group of instructions supported by the processor. For
     example, when the .286 and .287 directives are in effect, bits 0,
     1, 2, 8, and 10 will be set.
 
     The .486 directive sets bits in @Cpu as if the .387 directive were
     used.
 
       15                          8    7                           0
     ┌───┬───┬───┬───┬───┬───┬───┬───┐┌───┬───┬───┬───┬───┬───┬───┬───┐
     │   │   │   │   │387│287│   │87 ││Prv│   │   │486│386│286│186│86 │
     │   │   │   │   │   │   │   │   ││   │   │   │   │   │   │188│88 │
     └───┴───┴───┴───┴───┴───┴───┴───┘└───┴───┴───┴───┴───┴───┴───┴───┘
 
     Bit     Processor Compatibility
 
      0      8086/8088
      1      80186/80188
      2      80286
      3      80386
      4      80486
      7      Privileged instructions enabled
      8      8087
     10      80287
     11      80387
 
     All other bits are reserved, and their values are undefined.
                                    -♦-