L166 User's Guide

Example 2

The following L166 Command Line:

L166 inputlist
     CLASSES (ICODE  (0x000000 - 0x007FFF),
              NCONST (0x004000 - 0x007FFF),
              FCONST (0x000000 - 0x007FFF),
              HCONST (0x000000 - 0x007FFF),
              NDATA  (0x008000 - 0x00BFFF),
              NDATA0 (0x008000 - 0x00BFFF),
              FDATA  (0x030000 - 0x03FFFF),
              FDATA0 (0x030000 - 0x03FFFF),
              HDATA  (0x030000 - 0x03FFFF),
              HDATA0 (0x030000 - 0x03FFFF),
              XDATA  (0x030000 - 0x03FFFF),
              XDATA0 (0x030000 - 0x03FFFF),
              FCODE  (0x000000 - 0x007FFF, 0x010000 - 0x01FFFF))
     CINITTAB (0x000000 - 0x007FFF)

Defines the memory areas for the following target system to the linker.

Memory
Type
Address
Range
Used By
ROM0x000000-0x007FFFInterrupt vectors, NEAR constants, and start-up code.
RAM0x008000-0x00FFFFNEAR data and system page.
ROM0x010000-0x01FFFFNEAR executable program code.
RAM0x030000-0x03FFFFFAR/HUGE/XHUGE data.

Note

  • This program uses the LARGE memory model so all code is located in the FCODE class.
  • This program has a 64K RAM area used for FAR/HUGE/XHUGE data.