?? sample.xcl
字號(hào):
// -LNK8051.XCL-
//
// XLINK 4.44, or higher, command file to be used with the 8051
// C-compiler V5.xx
// using the -mt, -ms, -mc, -mm or -ml memory model
// Usage: xlink your_file(s) -f lnk8051l
//
// First: define CPU
//
// Revision control system
// $Id: lnk8051.xcl 1.14 1998/11/12 07:35:27 matsp Exp $
//
-l Sample.html -xsmeoh
-c8051
// If you have register independent code use: -D_R=0
// (or 8,16,24) to choose the register bank used at startup
-D_R=0
// Setup "bit" segments (always zero if there is no need to reserve
// bit variable space for some other purpose)
-Z(BIT)C_ARGB,BITVARS=0
// Setup "data" segments. Start address may not be less
// than start of register bank + 8. Space must also
// be left for interrupt functions with the "using" attribute.
-Z(DATA)B_UDATA,B_IDATA,C_ARGD,D_UDATA,D_IDATA=20
// Setup "idata" segments (usually loaded after "data")
-Z(IDATA)C_ARGI,I_UDATA,I_IDATA,CSTACK
// Setup "xdata" segments to the start address of external RAM.
// Note that it starts from 1 since a pointer to address zero is regarded
// as NULL.
// Note that this declaration does no harm even if you use a memory
// model that does not utilize external data RAM
-Z(XDATA)P_UDATA,P_IDATA,C_ARGX,X_UDATA,X_IDATA,ECSTR,RF_XDATA,XSTACK=1
// Setup all read-only segments (PROM). Usually at zero
-Z(CODE)INTVEC,RCODE,D_CDATA,B_CDATA,I_CDATA,P_CDATA,X_CDATA,C_ICALL,C_RECFN,CSTR,CCSTR,CODE,CONST=0-1fff
// See configuration section concerning printf/sprintf
-e_small_write=_formatted_write
// See configuration section concerning scanf/sscanf
-e_medium_read=_formatted_read
// Load the 'C' library adapted for the selected memory model
// cl8051t , cl8051s, cl8051c, cl8051m, cl8051l
// Code will now reside on file aout.a03 in INTEL-STANDARD format
// TUSB3410 XDATA Definition
//-Z(XDATA)TUSB3410_EXTERNAL_RAM_SEG=0000-3fff
-Z(XDATA)TUSB3410_SETUPPACKET_SEG=ff00-ff07 // 8-byte setup packet
-Z(XDATA)TUSB3410_OEP_EDB_SEG=ff08-ff1f // 3 output endpoint configuration
-Z(XDATA)TUSB3410_IEP_EDB_SEG=ff48-ff5f // 3 input endpoint configuration
-Z(XDATA)TUSB3410_OEP0BUFFER_SEG=fef0-fef7 // 8-byte data output endpoint 0
-Z(XDATA)TUSB3410_IEP0BUFFER_SEG=fef8-feff // 8-byte data input endpoint 0
//-Z(XDATA)TUSB3410_OEP1_X_BUFFER_SEG=f800-f83f // 64-byte endpoint buffer
//-Z(XDATA)TUSB3410_DESC_SEG=f840-faff // device and configuration descriptor
-Z(XDATA)TUSB3410_DESC_SEG=f840-f93f // maximum 256 bytes for descriptors
// TUSB3410 endpoint 0 configuration registers
-Z(XDATA)TUSB3410_EP0_EDB_SEG=ff80-ff83
// User defined segment, in order to compatible with TUSB3410.h definition
// there is a gab between IEP1 and OEP2
-Z(XDATA)TUSB3410_IEP1_X_BUFFER_SEG=f800-f81f // 32-byte endpoint buffer
-Z(XDATA)TUSB3410_OEP2_X_BUFFER_SEG=f980-f99f // 32-byte endpoint buffer
-Z(XDATA)TUSB3410_XDATA_SEG=f9a0-feef // free XDATA segment, can be used for anything
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -