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

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

?? start12.c

?? mc9s12dg128中頭文件的相關說明和中斷入口設置
?? 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一区二区三区免费野_久草精品视频
石原莉奈在线亚洲二区| 日本vs亚洲vs韩国一区三区| 色婷婷一区二区三区四区| 五月天激情综合| 亚洲国产精品久久艾草纯爱 | 色婷婷狠狠综合| 日韩久久精品一区| 欧美一区二区视频在线观看2022| av在线播放一区二区三区| 久久9热精品视频| 久久精品国产亚洲a| 日本高清无吗v一区| 91免费国产在线| 欧洲国产伦久久久久久久| 在线亚洲人成电影网站色www| 久久久亚洲午夜电影| 欧美成人一区二区三区在线观看| 日韩视频一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 久久九九全国免费| 久久99深爱久久99精品| 在线播放亚洲一区| 精品粉嫩超白一线天av| 中文字幕在线一区二区三区| 在线不卡中文字幕播放| 亚洲国产人成综合网站| 91麻豆免费看| 亚洲男同1069视频| 人人精品人人爱| 在线播放91灌醉迷j高跟美女| 欧美精品丝袜中出| 亚洲在线中文字幕| 热久久国产精品| 5566中文字幕一区二区电影| 亚洲图片欧美视频| 欧美狂野另类xxxxoooo| 午夜精品一区二区三区电影天堂| 在线一区二区三区四区五区 | 91精品91久久久中77777| 1024国产精品| 色婷婷久久久久swag精品 | 欧美日韩一区高清| 久久久久久久精| 国产剧情一区二区| 91久久精品一区二区三| 一区二区三区日韩欧美精品| 极品尤物av久久免费看| 91麻豆产精品久久久久久| 亚洲色图都市小说| 黄色小说综合网站| 欧美日韩日本视频| 图片区日韩欧美亚洲| 制服.丝袜.亚洲.中文.综合| 经典三级视频一区| 综合亚洲深深色噜噜狠狠网站| 色综合天天性综合| 久久精品一区二区三区不卡牛牛 | 激情综合一区二区三区| 久久久精品免费免费| 成人教育av在线| 欧美不卡一区二区三区四区| 国产真实乱子伦精品视频| 亚洲欧洲韩国日本视频| 欧美三电影在线| 国产麻豆成人精品| 日韩免费福利电影在线观看| 国产电影精品久久禁18| 精品久久国产97色综合| 成人黄色一级视频| 日日摸夜夜添夜夜添国产精品 | 亚洲欧洲www| 欧美日韩你懂得| 成人综合日日夜夜| 国产校园另类小说区| 91黄视频在线| 国产一区二区三区四| 亚洲.国产.中文慕字在线| 色婷婷国产精品| 精品在线免费观看| 一区二区三区不卡在线观看| 久久先锋资源网| 国产成人在线看| 日韩和欧美一区二区三区| 欧美国产激情一区二区三区蜜月| 国产精品亚洲一区二区三区妖精 | 婷婷激情综合网| 综合欧美亚洲日本| 国产三级精品在线| 不卡视频在线观看| 久久精品国产亚洲高清剧情介绍| 亚洲美女屁股眼交| 国产精品视频第一区| 91香蕉视频在线| 韩国av一区二区三区| 日韩黄色小视频| 亚洲一区国产视频| 亚洲六月丁香色婷婷综合久久 | 亚洲精品在线电影| 欧美精品粉嫩高潮一区二区| 91视视频在线观看入口直接观看www | 色久综合一二码| 国产成人av电影在线| 亚洲女同ⅹxx女同tv| 久久无码av三级| 日韩欧美国产一区二区三区| 欧美日韩国产综合久久| 国产剧情一区二区| 久久99精品国产.久久久久| 亚洲国产sm捆绑调教视频 | 欧美婷婷六月丁香综合色| 视频一区二区中文字幕| 一区二区三区在线影院| 日韩美女视频一区| 中文字幕的久久| 国产精品午夜免费| 亚洲国产精品传媒在线观看| 久久久久久久电影| 中文字幕av资源一区| 国产亚洲精久久久久久| 日本一区免费视频| 日本一区二区免费在线| 中文字幕av一区二区三区免费看| 国产日韩一级二级三级| 国产精品久久久久aaaa| 亚洲欧洲成人av每日更新| 尤物视频一区二区| 三级影片在线观看欧美日韩一区二区 | 欧美日韩精品福利| 欧美一级一区二区| 26uuu色噜噜精品一区二区| 久久久www免费人成精品| 欧美国产激情一区二区三区蜜月| 国产精品丝袜黑色高跟| 一区二区三区在线视频免费 | 678五月天丁香亚洲综合网| 日韩欧美电影在线| 国产情人综合久久777777| 国产精品久久久久久久久搜平片 | 一区二区三区欧美日韩| 亚洲第一搞黄网站| 日本视频中文字幕一区二区三区| 中文字幕va一区二区三区| 亚洲视频狠狠干| 亚洲综合色成人| 久久国产精品99久久人人澡| 国产精品18久久久久久vr| 91欧美激情一区二区三区成人| 欧美人狂配大交3d怪物一区| 欧美精品一区二区三| 亚洲欧美日韩小说| 欧美aaaaaa午夜精品| 成人午夜视频在线观看| 欧美亚洲综合色| 久久综合网色—综合色88| 亚洲欧美偷拍另类a∨色屁股| 日韩av电影天堂| thepron国产精品| 91精品国产欧美一区二区| 欧美韩国日本不卡| 天天色综合天天| 奇米四色…亚洲| 成人免费看黄yyy456| 91.com在线观看| 中文字幕一区二区不卡| 奇米在线7777在线精品| 色综合天天天天做夜夜夜夜做| 精品国产乱码久久久久久图片| 亚洲精品成人天堂一二三| 黄色成人免费在线| 欧美日韩一区二区三区不卡| 国产欧美精品国产国产专区| 麻豆精品久久久| 日韩精品一级中文字幕精品视频免费观看 | 在线观看一区二区精品视频| 久久综合中文字幕| 日韩精品欧美精品| 日本道色综合久久| 国产精品女人毛片| 国产一区二区视频在线| 8x8x8国产精品| 一区二区三区在线视频播放| 成人午夜伦理影院| 欧美成人激情免费网| 亚洲国产人成综合网站| 91碰在线视频| 亚洲欧美综合另类在线卡通| 国产黑丝在线一区二区三区| 7777精品伊人久久久大香线蕉完整版 | 久久精品国产99国产| 欧美精品xxxxbbbb| 午夜av电影一区| 在线日韩av片| 亚洲第一成人在线| 欧美日韩国产综合视频在线观看 | 一区二区三区在线观看欧美| 不卡欧美aaaaa| 国产精品视频一二三区| 色综合久久久久| 国产三级精品三级在线专区| 国产精品一区二区三区99|