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

📄 ap_mode2.xcl

📁 C 代码C 代码C 代码C 代码C 代码C 代码C 代码C 代码C 代码C 代码
💻 XCL
字号:
/* mode1 app size 6kB */
/* Generate cross-reference list: MODULE MAP */
-xms

/* Generate list file */
-l main.lst

/* Include library */






/* First: define CPU */
-c6502

/* Setup "ZPAGE" segments. */
-Z(ZPAGE)ZPAGE,C_ARGZ,Z_UDATA,Z_IDATA=C2-EF

 /* 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+10=F0

 /* 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(NPAGE)INT_EXPR_STACK+20=100

 /* Setup "CSTACK" segment.*/ 
-Z(NPAGE)CSTACK+E0=120

 /* Setup "NPAGE" */
-Z(NPAGE)C_ARGN,NPAGE,N_UDATA,N_IDATA,ECSTR=F260-F3EF


 /* Setup "RF_STACK" segment.*/
-Z(NPAGE)RF_STACK+0


 /* Setup all non-banked ROM segments at address 4000  */
-Z(CODE)NONBANKED,Z_CDATA,N_CDATA,C_ICALL,C_RECFN,CCSTR=4000-7FDB



/* Setup AP_ENTRY_SEC segments at address DA60  */
-Z(CODE)AP_ENTRY_SEC=00DA60-00DA6F
-M00DA60-00DA6F=00000-00000F

 /* Setup APP segments at address DA70  */
-Z(CODE)APP,RCODE,CONST,CSTR,CODE=DA70-F25F
-M00DA70-00F25F=00010-017FF

 /* Setup the "INTVEC" interrupt segment. */
-Z(CODE)INTVEC=7FDC-7FFF

 /* Set up the banked area*/
/*-b(CODE)BANK1:BANK2:BANK3:BANK4=018000,8000,10000,4 */
/*-M018000-01FFFF=08000-0FFFF*/



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

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

cll3110
/*cll	*//*-ml -v1*/
/*cllb   */   /* -mB -v1 */

/* cllbp */   /* -mB -v2 */

/* cltbp */   /* -mb -v2 */


 /* Set up the port used for switching banks */
-D?BANK_REGISTER=34 /* MAP8B: PRRL */

 /* The mask of bits used in that register */
-D?BANK_REGISTER_MASK=FF

 /* The low address of the code bank area */
/* -D?BANK_LOW=8000 */
-D?BANK_LOW=4000

 /* The high address of the code bank area */
/* -D?BANK_HIGH=FFFF */
-D?BANK_HIGH=7FFF

⌨️ 快捷键说明

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