亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? start12.c

?? Freescale控制5110液晶程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*****************************************************
      start12.c - standard startup code
   The startup code may be optimized to special user requests
 ----------------------------------------------------
   Copyright (c) Metrowerks, Basel, Switzerland
               All rights reserved

Note: ROM libraries are not implemented in this startup code
Note: C++ destructors of global objects are NOT yet supported in the HIWARE Object File Format.
      To use this feature, please build your application with the ELF object file format.
 *****************************************************/
/* these macros remove some unused fields in the startup descriptor */
#define __NO_FLAGS_OFFSET       /* we do not need the flags field in the startup data descriptor */
#define __NO_MAIN_OFFSET        /* we do not need the main field in the startup data descriptor */
#define __NO_STACKOFFSET_OFFSET /* we do not need the stackOffset field in the startup data descriptor */

/*#define __BANKED_COPY_DOWN : allow to allocate .copy in flash area */
#if defined(__BANKED_COPY_DOWN) && (!defined(__HCS12X__) || !defined(__ELF_OBJECT_FILE_FORMAT__))
#error /* the __BANKED_COPY_DOWN switch is only supported for the HCS12X with ELF */
       /* (and not for the HC12, HCS12 or for the HIWARE object file format) */
#endif

#include "hidef.h"
#include "start12.h"

/***************************************************************************/
/* Macros to control how the startup code handles the COP:                 */
/* #define _DO_FEED_COP_  : do feed the COP                                */
/* #define _DO_ENABLE_COP_: do enable the COP                              */
/* #define _DO_DISABLE_COP_: disable the COP                               */
/* Without defining any of these, the startup code does NOT handle the COP */
/***************************************************************************/
/* __ONLY_INIT_SP define:                                                  */
/* This define selects an shorter version of the startup code              */
/* which only loads the stack pointer and directly afterwards calls        */
/* main. This version does however NOT initialized global variables        */
/* (So this version is not ANSI compliant!)                                */
/***************************************************************************/
/* __FAR_DATA define:                                                      */
/* By default, the startup code only supports to initialize the default    */
/* kind of memory. If some memory is allocated far in the small or banked  */
/* memory model, then the startup code only supports to initialize this    */
/* memory blocks if __FAR_DATA is defined. If __FAR_DATA is not defined,   */
/* then the linker will issue a message like                               */
/* "L1128: Cutting value _Range beg data member from 0xF01000 to 0x1000"   */
/* and this startup code writes to the cutted address                      */
/***************************************************************************/
/* __BANKED_COPY_DOWN define:                                              */
/* by default, the startup code assumes that the startup data structure    */
/* _startupData, the zero out areas and the .copy section are all          */
/* allocated in NON_BANKED memory. Especially the .copy section can be     */
/* huge if there are many or huge RAM areas to initialize.                 */  
/* For the HCS12X, which also copies the XGATE RAM located code via .copy  */
/* section, the startup code supports to allocate .copy in a banked flash  */
/* The placement of .copy in the prm file has to be adapted when adding or */
/* removing the this macro.                                                */
/* Note: This macro is only supported for the HCS12X and when using ELF    */
/***************************************************************************/

#ifdef __cplusplus
#define __EXTERN_C  extern "C"
#else
#define __EXTERN_C
#endif

/*lint -estring(961,"only preprocessor statements and comments before '#include'") , MISRA 19.1 ADV, non_bank.sgm and default.sgm each contain a conditionally compiled CODE_SEG pragma */

__EXTERN_C void main(void); /* prototype of main function */

#ifndef __ONLY_INIT_SP
#pragma DATA_SEG __NEAR_SEG STARTUP_DATA /* _startupData can be accessed using 16 bit accesses. */
/* This is needed because it contains the stack top, and without stack, far data cannot be accessed */
struct _tagStartup _startupData;  /*   read-only: */
                                  /*   _startupData is allocated in ROM and */
                                  /*   initialized by the linker */
#pragma DATA_SEG DEFAULT
#endif /* __ONLY_INIT_SP */

#if defined(FAR_DATA) && (!defined(__HCS12X__) || defined(__BANKED_COPY_DOWN))
/*lint -e451 non_bank.sgm contains a conditionally compiled CODE_SEG pragma */
#include "non_bank.sgm"
/*lint +e451 */

/* the init function must be in non banked memory if banked variables are used */
/* because _SET_PAGE is called, which may change any page register. */

/*lint -esym(752,_SET_PAGE) , symbol '_SET_PAGE' is referenced in HLI */
__EXTERN_C void _SET_PAGE(void);  /* the inline assembler needs a prototype */
                                  /* this is a runtime routine with a special */
                                  /* calling convention, do not use it in c code! */
#else
/*lint -e451 default.sgm contains a conditionally compiled CODE_SEG pragma */
#include "default.sgm"
/*lint +e451 */
#endif /* defined(FAR_DATA) && (!defined(__HCS12X__) || defined(__BANKED_COPY_DOWN)) */


/* define value and bits for Windef Register */
#ifdef HC812A4
#define WINDEF (*(volatile unsigned char*) 0x37)
#if defined( __BANKED__) || defined(__LARGE__) || defined(__PPAGE__)
#define __ENABLE_PPAGE__ 0x40
#else
#define __ENABLE_PPAGE__ 0x0
#endif
#if defined(__DPAGE__)
#define __ENABLE_DPAGE__ 0x80
#else
#define __ENABLE_DPAGE__ 0x0
#endif
#if defined(__EPAGE__)
#define __ENABLE_EPAGE__ 0x20
#else
#define __ENABLE_EPAGE__ 0x0
#endif
#endif  /* HC812A4 */

#ifdef _HCS12_SERIALMON
      /* for Monitor based software remap the RAM & EEPROM to adhere
         to EB386. Edit RAM and EEPROM sections in PRM file to match these. */
#define ___INITRM      (*(volatile unsigned char *) 0x0010)
#define ___INITRG      (*(volatile unsigned char *) 0x0011)
#define ___INITEE      (*(volatile unsigned char *) 0x0012)
#endif

#if defined(_DO_FEED_COP_)
#define __FEED_COP_IN_HLI()  } asm movb #0x55, _COP_RST_ADR; asm movb #0xAA, _COP_RST_ADR; asm {
#else
#define __FEED_COP_IN_HLI() /* do nothing */
#endif

#ifndef __ONLY_INIT_SP
#if (!defined(FAR_DATA) || defined(__HCS12X__)) && (defined( __BANKED__) || defined(__LARGE__) || defined(__BANKED_COPY_DOWN))
static void __far Init(void)
#else
static void Init(void)
#endif
 {
/* purpose:     1) zero out RAM-areas where data is allocated   */
/*              2) copy initialization data from ROM to RAM     */
/*              3) call global constructors in C++              */
/*   called from: _Startup, LibInits                            */
   asm {
ZeroOut:
#if defined(__HIWARE_OBJECT_FILE_FORMAT__) && defined(__LARGE__)
             LDX   _startupData.pZeroOut:1  ; in the large memory model in the HIWARE format, pZeroOut is a 24 bit pointer
#else
             LDX   _startupData.pZeroOut    ; *pZeroOut
#endif
             LDY   _startupData.nofZeroOuts ; nofZeroOuts
             BEQ   CopyDown                 ; if nothing to zero out

NextZeroOut: PSHY                           ; save nofZeroOuts
#if defined(FAR_DATA)
             LDAB  1,X+                     ; load page of destination address
             LDY   2,X+                     ; load offset of destination address
#if defined(__HCS12X__)
             STAB  __GPAGE_ADR__
#else /* defined(__HCS12X__) */
             __PIC_JSR(_SET_PAGE)           ; sets the page in the correct page register
#endif /* defined(__HCS12X__) */
#else   /* FAR_DATA */
             LDY   2,X+                     ; start address and advance *pZeroOut (X = X+4)
#endif  /* FAR_DATA */

#if defined(__HCS12X__) && defined(FAR_DATA)
             PSHX
             LDX   0,X                      ; byte count
#if defined(__OPTIMIZE_FOR_SIZE__)
             CLRA
NextWord:    GSTAA 1,Y+                     ; clear memory byte
             __FEED_COP_IN_HLI()            ; feed the COP if necessary /*lint !e505 !e522 asm code */
             DBNE  X, NextWord              ; dec byte count
#else
             LDD #0
             LSRX
             BEQ   LoopClrW1                ; do we copy more than 1 byte?
NextWord:    GSTD 2,Y+                      ; clear memory word
             __FEED_COP_IN_HLI()            ; feed the COP if necessary /*lint !e505 !e522 asm code */
             DBNE  X, NextWord              ; dec word count
LoopClrW1:
             BCC   LastClr                  ; handle last byte
             GSTAA 1,Y+											; handle last byte
LastClr:
#endif
             PULX
             LEAX  2,X
#elif defined(__OPTIMIZE_FOR_SIZE__)               /* -os, default */
             LDD   2,X+                     ; byte count
NextWord:    CLR   1,Y+                     ; clear memory byte
             __FEED_COP_IN_HLI()            ; feed the COP if necessary /*lint !e505 !e522 asm code */
             DBNE  D, NextWord              ; dec byte count
#else /* __OPTIMIZE_FOR_TIME__ */
             LDD   2,X+                     ; byte count
             LSRD                           ; /2 and save bit 0 in the carry
             BEQ   LoopClrW1                ; do we copy more than 1 byte?
             PSHX
             LDX   #0
LoopClrW:    STX   2,Y+                     ; Word-Clear
             __FEED_COP_IN_HLI()            ; feed the COP if necessary /*lint !e505 !e522 asm code */
             DBNE  D, LoopClrW
             PULX
LoopClrW1:
             BCC   LastClr                  ; handle last byte
             CLR   1,Y+
LastClr:
#endif /* __OPTIMIZE_FOR_SIZE__/__OPTIMIZE_FOR_TIME__ */
             PULY                           ; restore nofZeroOuts
             DEY                            ; dec nofZeroOuts
             BNE  NextZeroOut
CopyDown:
#if defined(__BANKED_COPY_DOWN)
             LDAA  _startupData.toCopyDownBeg:0 ; get PAGE address of .copy section
             STAA	 __PPAGE_ADR__          ; set PPAGE address
             LDX   _startupData.toCopyDownBeg:1 ; load address of copy down desc.
#elif defined(__ELF_OBJECT_FILE_FORMAT__)
             LDX   _startupData.toCopyDownBeg ; load address of copy down desc.
#else
             LDX   _startupData.toCopyDownBeg:2 ; load address of copy down desc.
#endif
NextBlock:
             LDD   2,X+                     ; size of init-data -> D
             BEQ   funcInits                ; end of copy down desc.
#ifdef FAR_DATA
             PSHD                           ; save counter
             LDAB  1,X+                     ; load destination page
             LDY   2,X+                     ; destination address
#if defined(__HCS12X__)
             STAB  __GPAGE_ADR__
#else  /* __HCS12X__ */
             __PIC_JSR(_SET_PAGE)           ; sets the destinations page register
#endif /* __HCS12X__ */
             PULD                           ; restore counter
#else  /* FAR_DATA */
             LDY   2,X+                     ; load destination address
#endif /* FAR_DATA */

#if defined(__HCS12X__) && defined(FAR_DATA)
#if defined(__OPTIMIZE_FOR_SIZE__)               /* -os, default */
Copy:        PSHA
             LDAA  1,X+
             GSTAA  1,Y+                    ; move a byte from ROM to the data area

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲老司机在线| 欧美高清在线一区| 丝袜美腿亚洲一区二区图片| 91久久久免费一区二区| 亚洲精品视频一区二区| 91福利视频在线| 亚洲电影第三页| 日韩一级黄色片| 国产麻豆午夜三级精品| 国产精品美女久久久久久久| 99re视频精品| 天天色图综合网| 精品久久久久久久久久久院品网| 国产一区二区在线免费观看| 日本一二三不卡| 91黄视频在线| 奇米精品一区二区三区在线观看 | 欧美疯狂性受xxxxx喷水图片| 亚洲第一成人在线| 精品福利av导航| 成人小视频在线| 午夜国产精品影院在线观看| 日韩精品一区在线| 国产999精品久久久久久绿帽| 亚洲黄色片在线观看| 欧美一区二区三区在线看| 精品一区二区三区av| 国产精品九色蝌蚪自拍| 欧美精品 国产精品| 成人免费毛片嘿嘿连载视频| 亚洲午夜三级在线| 久久麻豆一区二区| 欧美三片在线视频观看| 国产最新精品免费| 亚洲一区二区三区四区五区中文| 精品三级在线看| 91视频91自| 国产一区二区精品久久| 一区二区三区成人在线视频| 亚洲精品一区二区三区香蕉| 91福利社在线观看| 国产精品自拍在线| 亚洲va国产天堂va久久en| 国产视频一区不卡| 欧美日韩国产欧美日美国产精品| 丁香啪啪综合成人亚洲小说| 天天做天天摸天天爽国产一区| 国产精品免费视频网站| 日韩一级大片在线| 日本伦理一区二区| 懂色一区二区三区免费观看| 久久99蜜桃精品| 亚洲成在人线免费| 一区免费观看视频| 久久久噜噜噜久噜久久综合| 51精品久久久久久久蜜臀| 99久久综合狠狠综合久久| 极品尤物av久久免费看| 日韩精彩视频在线观看| 亚洲免费成人av| 中文字幕不卡一区| 国产拍欧美日韩视频二区| 久久一区二区三区四区| 欧美不卡视频一区| 337p亚洲精品色噜噜狠狠| 在线观看免费成人| 色婷婷久久综合| 99re成人在线| 99久久亚洲一区二区三区青草| 国产尤物一区二区在线| 九九视频精品免费| 蜜桃精品在线观看| 日韩福利电影在线| 亚洲国产成人porn| 亚洲h动漫在线| 亚洲国产三级在线| 亚洲第一综合色| 亚洲成a人片在线不卡一二三区 | 经典三级在线一区| 美国精品在线观看| 国产呦精品一区二区三区网站| 美美哒免费高清在线观看视频一区二区| 午夜激情一区二区| 蜜臀av亚洲一区中文字幕| 日韩精品欧美精品| 麻豆免费看一区二区三区| 免费三级欧美电影| 激情图区综合网| 国产精品一级黄| av资源网一区| 99久久精品国产麻豆演员表| 97精品久久久午夜一区二区三区| 91亚洲男人天堂| 在线日韩一区二区| 欧美日韩一区二区在线视频| 在线播放一区二区三区| 日韩欧美激情四射| 久久久91精品国产一区二区精品 | 天天综合天天做天天综合| 奇米色一区二区| 粉嫩av一区二区三区| 色狠狠综合天天综合综合| 欧美久久久久久蜜桃| 精品国产伦一区二区三区观看方式| 久久美女高清视频| 1024国产精品| 午夜日韩在线观看| 国产资源在线一区| 91在线观看污| 欧美日韩美少妇 | 亚洲国产精品激情在线观看| 亚洲免费大片在线观看| 蜜桃久久精品一区二区| 国产成人午夜高潮毛片| 91福利区一区二区三区| 欧美成人精品高清在线播放| 亚洲欧洲精品天堂一级| 午夜精品福利一区二区三区av| 国产专区综合网| 97精品久久久久中文字幕| 91精品国产色综合久久不卡电影 | 欧美精品一级二级三级| 久久久亚洲国产美女国产盗摄| 亚洲欧洲在线观看av| 奇米影视一区二区三区小说| 91在线免费播放| 精品久久久久久久人人人人传媒 | 久久精品人人爽人人爽| 亚洲最色的网站| 国产乱子伦一区二区三区国色天香 | 美女视频网站久久| 色综合天天综合狠狠| 精品精品欲导航| 亚洲国产日韩a在线播放| 国产精品99久久久久久有的能看| 欧美日韩精品一区二区三区蜜桃| 国产女人aaa级久久久级 | 欧美精品色综合| 一区在线观看免费| 国产精品综合网| 91精品国产91久久综合桃花| 亚洲视频在线观看一区| 韩国毛片一区二区三区| 7777精品伊人久久久大香线蕉最新版| 国产精品久久夜| 国精产品一区一区三区mba视频| 精品视频在线视频| 综合久久综合久久| 高清不卡一区二区| 精品久久国产字幕高潮| 日韩成人dvd| 欧美日韩中文字幕一区二区| 亚洲乱码国产乱码精品精98午夜 | 亚洲综合999| 成人精品视频一区| 2017欧美狠狠色| 老司机一区二区| 日韩一区二区三区精品视频| 亚洲成人综合在线| 精品视频在线视频| 五月天网站亚洲| 欧美四级电影在线观看| 一区二区欧美精品| 91国偷自产一区二区三区观看| 国产精品国产三级国产普通话99 | 国产精品免费久久久久| 国产成人一区在线| 精品少妇一区二区三区日产乱码| 久久精品国产精品亚洲综合| 日韩精品影音先锋| 黄页视频在线91| wwwwww.欧美系列| 国产一区二区在线电影| 久久久亚洲高清| 成人精品鲁一区一区二区| 中文字幕欧美区| av在线综合网| 亚洲欧美视频一区| 欧美亚洲一区二区三区四区| 亚洲国产日产av| 欧美一级精品在线| 精品一区二区三区免费视频| 久久亚洲综合色一区二区三区| 国产高清在线观看免费不卡| 国产精品久久精品日日| 日本大香伊一区二区三区| 日日夜夜精品视频天天综合网| 91精品国产色综合久久久蜜香臀| 精品一区二区影视| 国产日韩视频一区二区三区| 99这里只有精品| 亚洲一区二区黄色| 日韩你懂的在线播放| 国产精品中文字幕日韩精品| 日韩理论片网站| 欧美丝袜第三区| 久久99国产精品免费| 亚洲欧洲韩国日本视频| 欧美三级视频在线播放| 激情偷乱视频一区二区三区|