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

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

?? start12.c

?? 飛思卡爾單片機MC9SDG128B的脈沖捕獲程序
?? 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆免费在线观看| 91免费观看视频在线| 日韩中文字幕区一区有砖一区| 亚洲欧美乱综合| 亚洲欧美一区二区三区国产精品| 一区二区中文视频| 亚洲卡通欧美制服中文| 亚洲视频一区在线| 亚洲免费资源在线播放| 一区二区三区**美女毛片| 亚洲色图欧美在线| 一区二区成人在线视频| 亚洲一级在线观看| 日本中文在线一区| 蜜臀精品久久久久久蜜臀| 看片网站欧美日韩| 国产精品一色哟哟哟| 不卡一区在线观看| 91传媒视频在线播放| 欧美日韩国产小视频在线观看| 欧美精品日韩精品| 精品区一区二区| 中文字幕高清一区| 亚洲色图视频免费播放| 亚洲午夜在线视频| 另类的小说在线视频另类成人小视频在线| 蜜桃av噜噜一区| 成人激情免费视频| 色8久久精品久久久久久蜜| 欧美在线视频不卡| 精品对白一区国产伦| 国产精品每日更新在线播放网址| 日韩理论片在线| 亚洲成人福利片| 国产精品 日产精品 欧美精品| 99久久99久久综合| 在线成人av影院| 国产欧美日韩激情| 亚洲成人777| 国产成人一级电影| 欧美无人高清视频在线观看| 国产在线精品一区二区不卡了| 亚洲一级二级三级| 久久精品国产免费看久久精品| 成人性色生活片| 欧美日韩精品三区| 国产三级精品三级在线专区| 亚洲一二三四区不卡| 精品一区二区久久| 91美女视频网站| 精品国偷自产国产一区| 亚洲精品五月天| 国产一区二区视频在线播放| 在线观看亚洲a| 精品美女在线播放| 亚洲高清三级视频| 福利电影一区二区| 日韩一区二区三区在线视频| 国产精品不卡在线| 精品一区二区三区的国产在线播放| av中文字幕亚洲| 精品粉嫩超白一线天av| 亚洲第一久久影院| 成人蜜臀av电影| 日韩精品中午字幕| 亚洲一级二级三级| 成人aaaa免费全部观看| 精品国产伦一区二区三区观看体验 | 国产在线麻豆精品观看| 色成年激情久久综合| 欧美国产乱子伦| 日韩av在线播放中文字幕| 91丝袜美女网| 国产色综合久久| 看国产成人h片视频| 欧美日韩精品一区二区三区蜜桃| 中文字幕不卡一区| 久久99蜜桃精品| 欧美区视频在线观看| 亚洲免费观看在线观看| 国产成人在线免费观看| 亚洲精品在线观看网站| 亚洲成av人**亚洲成av**| 91在线国产福利| 国产亚洲欧美日韩日本| 日本麻豆一区二区三区视频| 欧美三级日韩三级国产三级| 亚洲欧美日韩国产手机在线| 白白色 亚洲乱淫| 欧美国产欧美综合| 国产一区不卡视频| 久久综合资源网| 美女视频免费一区| 欧美一级理论性理论a| 五月天丁香久久| 欧美中文字幕一区二区三区亚洲| **欧美大码日韩| 99久久er热在这里只有精品15 | 久久精品国内一区二区三区| 在线免费精品视频| 亚洲美腿欧美偷拍| 色哟哟一区二区在线观看| 自拍视频在线观看一区二区| 波多野结衣中文字幕一区| 国产女人18毛片水真多成人如厕 | 日韩女优毛片在线| 久久精品国产亚洲一区二区三区| 欧美一区二区三区在线| 婷婷六月综合亚洲| 欧美电影免费观看高清完整版 | 成人免费视频视频| 日韩一区在线播放| 99国产精品久久久久久久久久久| 1区2区3区国产精品| 91国产免费观看| 亚洲国产色一区| 欧美一区二区精品| 极品少妇一区二区| 国产精品免费视频一区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 久久亚洲免费视频| 成人理论电影网| 亚洲免费观看高清完整版在线| 在线精品视频免费播放| 亚洲一二三级电影| 日韩欧美国产麻豆| 国产1区2区3区精品美女| 亚洲乱码中文字幕综合| 欧美日韩一区三区| 久久精品国产在热久久| 中文字幕+乱码+中文字幕一区| 91麻豆国产在线观看| 首页国产丝袜综合| 久久久精品影视| 99久久精品情趣| 天堂在线亚洲视频| 久久久www成人免费无遮挡大片| 94色蜜桃网一区二区三区| 亚洲成精国产精品女| 久久久久久亚洲综合影院红桃| 91伊人久久大香线蕉| 青青草91视频| 国产精品久久久久毛片软件| 欧美色爱综合网| 国产精品自在在线| 亚洲一区免费在线观看| 2024国产精品| 色天使色偷偷av一区二区| 久久91精品久久久久久秒播| 国产精品久久久久桃色tv| 欧美精品乱码久久久久久| 国产精品一区二区无线| 午夜天堂影视香蕉久久| 国产精品热久久久久夜色精品三区| 在线视频你懂得一区| 国产福利一区二区三区视频在线 | 日韩三级在线观看| 91亚洲国产成人精品一区二区三 | 国产精品18久久久久久久网站| 亚洲综合视频网| 国产欧美日韩不卡免费| 91精品国产91久久久久久最新毛片| www.日韩大片| 国产制服丝袜一区| 天堂av在线一区| 亚洲精品五月天| 中文字幕av一区二区三区高| 日韩欧美一二三| 精品视频在线看| 99精品视频一区二区| 国产精品影视在线观看| 奇米影视7777精品一区二区| 亚洲免费观看高清完整版在线 | 日韩二区在线观看| 亚洲人精品午夜| 国产日韩精品久久久| 日韩美女视频一区二区在线观看| 麻豆成人免费电影| 亚洲欧洲制服丝袜| 亚洲国产高清在线| 538在线一区二区精品国产| 色综合久久久久综合体| 成人avav在线| 狠狠色综合日日| 久久精品国产在热久久| 亚洲日本一区二区三区| 国产免费观看久久| 久久综合九色综合欧美亚洲| 欧美日韩和欧美的一区二区| 色哟哟国产精品| 国产在线视频一区二区| 免费看欧美女人艹b| 日韩精品欧美精品| 一区二区三区在线不卡| 亚洲欧美日本韩国| 欧美成人猛片aaaaaaa| 欧美精品一级二级| 欧美军同video69gay| 色一情一伦一子一伦一区|