⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 740c.cmd

📁 740的程序的参考程序
💻 CMD
字号:
-!                 - lnk740.xcl -

        XLINK 4.44, or higher, command file to be used with the 740
        C-compiler V1.xx
        Usage:  xlink  your_file(s)  -f lnk740

        $Id: lnk740.xcl 1.4 2001/07/16 14:14:59Z IJON Exp $

        IMPORTANT:      1. Use a COPY of this file.
                        2. Select a C library at the end of this file
                           that matches the compilation switches.
                        3. If you use the 37600, see note about the
                           INTVEC segment futher down.

        MODIFICATION:   M38034M4

        First: define CPU  -!

-c740


-!  Setup "bit" segments (always zero if there is no need to reserve
    bit variable space for some other purpose) -!

-Z(BIT)BITVARS=200   -! address 40 (only) -!


-!  Setup "ZPAGE" segments.
    We allocate 41-FF for zero page by default.  It is assumed that
    00-3F is for SFRs while 40 is for a few "bit" variables.
    The following segment defintions (EXPR_STACK, INT_EXPR_STACK and
    CSTACK) that do not have an address given must fit inside the
    "41-FF" address range.
    If you have the CSTACK (processor stack) segment outside zero page,
    you have to give it an address and XLINK will no longer try to
    fit it within zero page.            -!

-Z(ZPAGE)ZPAGE,C_ARGZ,Z_UDATA,Z_IDATA=41-FF


-!  Setup "EXPR_STACK" segment. This zero page located stack is used
    to hold temporary when evaluating complex expressions.
    It is set to 20(hex) below. -!

-Z(ZPAGE)EXPR_STACK+8

-!  Setup "INT_EXPR_STACK" segment. This zero page located stack is used
    to hold temporary when evaluating complex expressions for interrupt
    routines written in C.  It is set to 0 below.
    You must give this stack space if you have C written interrupts that
    need an expression stack.  -!

-Z(ZPAGE)INT_EXPR_STACK+8


-!  Setup "CSTACK" segment. This is the CPU stack. Note that this can
    either reside in page 0 or 1 =100 -!

-Z(NPAGE)CSTACK+0D=100

-!  Setup "NPAGE" segments at address 1000-7FFF   -!

-Z(NPAGE)NPAGE,C_ARGN,N_UDATA,N_IDATA,ECSTR=100-13F


-! Setup "RF_STACK" segment.  This stack is used for recursive function.
   It is by default given a size of 256 bytes by the library.  By giving
   a non-zero size below, you _expand_ the stack by that amount.  -!

-Z(NPAGE)RF_STACK+0


-!  Setup all read-only segments (PROM) at address 8000  -!

-Z(CODE)RCODE,Z_CDATA,N_CDATA,C_ICALL,C_RECFN,CSTR,CCSTR,CODE,CONST=E080-FEFF


-!  Setup the "INTVEC" interrupt segment.
    If you are using the 37600 (chip group -v2) and the default cstartup
    reset vector, you must change the INTVEC line below to:
        -Z(CODE)INTVEC=FFC0-FFFF
    If you have a tiny chip derivative that does not have the interrupt
    vectors in page FF, you can change the page of the addresses below.
    CSTARTUP inserts the reset vector relative to INTVEC start which
    means that you can change the page without any problems:
        -Z(CODE)INTVEC=1FE0-1FFF
        -Z(CODE)C_FNT=1F00                      -!

-Z(CODE)INTVEC=FFDC-FFFD
-Z(CODE)C_FNT=FF00-FFDB


-!  See configuration section concerning printf/sprintf -!
-e_small_write=_formatted_write


-!  See configuration section concerning scanf/sscanf -!
-e_medium_read=_formatted_read


-! This example files selects the default library which is
   tiny memory model and a 740 with MUL/DIV.
   This corresponds to option -mt and -v0 to the compiler.
   If you want to use another library, you can do it by
   removing the comments around it and adding comments around
   the default library.                  -!

-C cl7400l

-! -C cl7400t -!                -!   -v0  -mt  -!
-! -C cl7400l -!                -!   -v0  -ml  -!
-! -C cl7401t -!                -!   -v1  -mt  -!
-! -C cl7401l -!                -!   -v1  -ml  -!
-! -C cl7402t -!                -!   -v2  -mt  -!
-! -C cl7402l -!                -!   -v2  -ml  -!


-!  Code will now reside on file aout.a31 in INTEL-STANDARD format -!
.\cstartup.r31  
.\main.r31  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -