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

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

?? start12.c

?? SD讀寫程序
?? 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.
 *****************************************************/
/*lint -esym(750, __NO_FLAGS_OFFSET, __NO_MAIN_OFFSET, __NO_STACKOFFSET_OFFSET) */
/* 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     */
/* if there are many or large 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

__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 */
/*lint -e1065 */
struct _tagStartup _startupData;  /*   read-only: */
                                  /*   _startupData is allocated in ROM and */
                                  /*   initialized by the linker */
/*lint +e1065 */
#pragma DATA_SEG DEFAULT
#endif /* __ONLY_INIT_SP */

#if defined(FAR_DATA) && (!defined(__HCS12X__) || defined(__BANKED_COPY_DOWN))
#include "non_bank.sgm"
/* 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. */

__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
#include "default.sgm"
#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+

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品国产91久久久久久| 99在线热播精品免费| 91欧美激情一区二区三区成人| 精品精品欲导航| 日韩电影免费一区| 欧美精品乱码久久久久久| 中文字幕一区二区三区精华液| 国产suv精品一区二区883| 亚洲国产成人在线| 亚洲国产日韩在线一区模特| 韩国欧美国产1区| 亚洲欧洲韩国日本视频| 精品日韩成人av| 欧美电影在哪看比较好| 色综合中文字幕| 日韩电影在线看| 亚洲国产成人私人影院tom| 日本高清视频一区二区| 日本不卡1234视频| 国产精品欧美久久久久无广告| 99精品视频一区二区三区| 亚洲资源在线观看| 国产午夜久久久久| 91福利国产成人精品照片| 午夜精品久久一牛影视| 精品国产91乱码一区二区三区| 国产一区在线精品| 亚洲成人在线免费| 中文字幕一区二区日韩精品绯色| 宅男在线国产精品| 欧美性猛交一区二区三区精品| 亚洲国产电影在线观看| 色999日韩国产欧美一区二区| 丝袜诱惑亚洲看片| 亚洲日本电影在线| 91精品国产欧美一区二区18| 国产99精品国产| 日本美女一区二区三区视频| 国产精品成人免费精品自在线观看 | 日韩精品一区第一页| 国产日韩欧美在线一区| 91精品国产乱码| 欧美美女一区二区三区| 91丨九色丨国产丨porny| 国产一区999| 国产一区二区在线影院| 天使萌一区二区三区免费观看| 国产人久久人人人人爽| 精品久久久久久久久久久院品网| 欧美日韩国产一二三| 在线播放视频一区| 91精品国产一区二区三区香蕉| 欧美日韩你懂得| 欧美一区二区三区性视频| 精品成人a区在线观看| 国产午夜精品美女毛片视频| 中文字幕免费观看一区| 亚洲午夜免费电影| 国产毛片一区二区| 欧美日韩高清一区二区三区| 在线观看中文字幕不卡| 色播五月激情综合网| 欧美视频日韩视频| 欧美r级在线观看| 精品久久久久久亚洲综合网| 欧美高清在线一区二区| 一区二区三区四区乱视频| 免费观看久久久4p| 成人在线视频首页| 在线观看不卡视频| 欧美国产乱子伦| 天天色 色综合| 99久久免费视频.com| 欧美一区二区三区四区高清| 中文字幕av一区二区三区免费看| 亚洲成人av在线电影| 懂色av中文一区二区三区| 欧美精品国产精品| 亚洲精品国产第一综合99久久 | 中文字幕第一区第二区| 午夜欧美在线一二页| 成人av综合在线| 精品成人a区在线观看| 天堂成人国产精品一区| 色激情天天射综合网| 国产精品毛片久久久久久久| 99精品视频在线观看免费| 制服.丝袜.亚洲.另类.中文| 亚洲视频免费在线观看| 成人福利视频在线看| 国产女同互慰高潮91漫画| 国产一区二区福利视频| 日韩欧美久久久| 日韩精品电影在线| 91精品麻豆日日躁夜夜躁| 爽好久久久欧美精品| 色婷婷久久综合| 亚洲老妇xxxxxx| 欧美日韩一区二区欧美激情| 亚洲欧美另类久久久精品| 色综合天天综合色综合av| 亚洲伦理在线精品| 欧美日韩午夜在线视频| 婷婷中文字幕一区三区| 欧美一级日韩免费不卡| 久久se精品一区二区| www成人在线观看| 豆国产96在线|亚洲| 一区二区三区中文在线| 91精品国产一区二区三区| 国产一区二区三区免费在线观看| 中文av一区二区| 色94色欧美sute亚洲线路一ni| 亚洲电影在线播放| 五月天欧美精品| 国产精品伦理在线| 欧美日韩电影在线| 国模冰冰炮一区二区| 亚洲精品伦理在线| 欧美电影免费观看高清完整版在线 | 懂色av一区二区三区免费看| 亚洲蜜臀av乱码久久精品蜜桃| 69堂成人精品免费视频| 国产69精品久久久久毛片| 一区二区三区在线观看动漫| 久久精品夜色噜噜亚洲aⅴ| 一本一本大道香蕉久在线精品| 免费人成精品欧美精品| 亚洲青青青在线视频| 久久久久久久av麻豆果冻| 欧美三级韩国三级日本三斤| 国产精品12区| 美女视频黄免费的久久| 亚洲国产乱码最新视频| 国产精品色噜噜| 欧美变态凌虐bdsm| 在线播放国产精品二区一二区四区 | 日韩一级成人av| 欧美精品乱码久久久久久按摩| 欧美亚一区二区| 日本久久电影网| 欧洲色大大久久| 色香色香欲天天天影视综合网| 国产69精品久久99不卡| youjizz久久| 色狠狠桃花综合| 欧美高清激情brazzers| 91精品国产品国语在线不卡| 在线观看不卡一区| 91精品国产麻豆| 精品福利一二区| 亚洲国产精品av| 亚洲欧洲中文日韩久久av乱码| 亚洲欧美日韩中文播放| 夜夜嗨av一区二区三区网页 | 91蝌蚪porny成人天涯| 欧美视频在线一区二区三区 | 91精品国产综合久久国产大片| 日韩亚洲欧美高清| 国产精品免费久久| 亚洲一区二区三区四区中文字幕 | 韩国成人福利片在线播放| 99久久综合色| 欧美一级夜夜爽| 综合久久一区二区三区| 丝袜a∨在线一区二区三区不卡| 美女高潮久久久| 99re成人在线| 日韩精品一区二区在线| 亚洲综合视频在线观看| 国产伦精品一区二区三区视频青涩 | 国产精品久久久久9999吃药| 亚洲在线视频网站| 99国产精品久久| 久久免费国产精品| 天堂一区二区在线免费观看| 国产精品一级片在线观看| 在线不卡a资源高清| 亚洲欧洲成人精品av97| 韩国av一区二区三区在线观看| 在线看不卡av| 亚洲美女屁股眼交3| 成人国产在线观看| 精品国产欧美一区二区| 香蕉加勒比综合久久| 日本黄色一区二区| 国产精品免费久久| 国产成人精品午夜视频免费| 日韩欧美一区二区不卡| 蜜桃久久久久久| 欧美日韩激情一区二区| 亚洲一级在线观看| 欧美久久一区二区| 亚洲一二三四区不卡| 欧美精品久久99| 精品一二线国产| 国产日韩欧美激情| 不卡视频在线看| 亚洲视频 欧洲视频| 欧亚洲嫩模精品一区三区|