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

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

?? start12.c

?? 配置使用freescale MC9S12X 單片機EEPROM
?? 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 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
youjizz国产精品| 一区二区三区中文字幕电影| 欧美三区免费完整视频在线观看| 成人免费视频一区二区| 国产精品综合一区二区| 久久精品国产77777蜜臀| 日韩精品电影在线| 免费在线观看视频一区| 国产一区二区三区电影在线观看| 极品销魂美女一区二区三区| 国产自产视频一区二区三区| 国产自产2019最新不卡| 成人一级黄色片| 色婷婷国产精品综合在线观看| 欧美日韩久久一区| 欧美一区二区三区婷婷月色| 精品国产污污免费网站入口 | 久久久久久久综合日本| 精品区一区二区| 国产精品日韩成人| 亚洲一区二区三区三| 奇米一区二区三区| 成人av电影在线| 在线精品国精品国产尤物884a| 制服丝袜日韩国产| 国产午夜亚洲精品理论片色戒| 日韩码欧中文字| 日本视频一区二区| 成人免费精品视频| 色综合久久综合| 欧美性视频一区二区三区| 日韩欧美亚洲一区二区| 国产精品麻豆一区二区 | 丝袜亚洲另类欧美| 国产福利一区在线| 91成人免费电影| 91精品国产综合久久婷婷香蕉| 国产欧美精品一区aⅴ影院 | 亚洲成a人v欧美综合天堂| 久久99精品久久只有精品| 91女神在线视频| 欧美一区二区视频观看视频| 国产精品久久久久久一区二区三区| 亚洲激情综合网| 久久机这里只有精品| 色婷婷亚洲一区二区三区| 26uuu精品一区二区在线观看| 亚洲精品菠萝久久久久久久| 经典三级在线一区| 欧美日韩精品一区二区天天拍小说| 欧美国产一区视频在线观看| 午夜精品久久久久影视| 成人黄色软件下载| 欧美精品一区二区三区久久久| 亚洲一区在线观看免费| 高清不卡在线观看av| 日韩欧美一区二区在线视频| 夜夜嗨av一区二区三区| 国产精品资源站在线| 日韩一区二区视频在线观看| 香蕉av福利精品导航| 97成人超碰视| 国产精品全国免费观看高清| 国产在线播放一区三区四| 欧美一区日本一区韩国一区| 亚洲综合丁香婷婷六月香| 99久久婷婷国产综合精品| 国产欧美一区二区三区沐欲 | 国产69精品久久久久777| 日韩欧美国产综合一区| 午夜精品久久久久久| 欧美区视频在线观看| 亚洲地区一二三色| 欧美亚洲综合网| 午夜国产精品一区| 欧美电影在哪看比较好| 一区二区三区国产精华| 69堂精品视频| 欧美激情综合在线| 欧美激情一区三区| 国产精品资源在线看| 精品国产麻豆免费人成网站| 男人的j进女人的j一区| 欧美二区在线观看| 久久精品国产秦先生| 欧美大片一区二区| 国产黄人亚洲片| 国产精品欧美经典| 在线精品亚洲一区二区不卡| 一二三区精品福利视频| 欧美裸体bbwbbwbbw| 免费在线观看视频一区| 久久免费电影网| 99久久免费国产| 亚洲国产精品麻豆| 精品国产制服丝袜高跟| 国产成人在线观看免费网站| 亚洲欧美中日韩| 欧美日韩五月天| 蜜桃传媒麻豆第一区在线观看| 欧美成人国产一区二区| 国产成人精品免费| 亚洲综合成人在线视频| 日韩亚洲欧美综合| 成人免费视频caoporn| 一区二区三区美女视频| 精品成人一区二区| 99re热这里只有精品免费视频| 亚洲18色成人| 欧美经典一区二区三区| 在线免费视频一区二区| 国产伦精一区二区三区| 亚洲自拍偷拍九九九| 亚洲精品一区二区精华| 色妹子一区二区| 国产原创一区二区| 水野朝阳av一区二区三区| 久久精品夜夜夜夜久久| 欧美在线高清视频| 成人手机在线视频| 国内精品嫩模私拍在线| 亚洲一区二区欧美激情| 国产日韩精品一区| 日韩欧美一区二区免费| 色94色欧美sute亚洲线路一久| 九一九一国产精品| 亚洲成人激情综合网| 国产精品第13页| 久久美女高清视频| 91精品国产色综合久久ai换脸| 色婷婷av一区二区三区大白胸| 狠狠色综合播放一区二区| 亚洲国产日日夜夜| 亚洲三级免费观看| 中文字幕亚洲视频| 国产日韩欧美a| 久久久蜜臀国产一区二区| 欧美日韩精品系列| 日本韩国欧美国产| 99麻豆久久久国产精品免费优播| 国产真实乱对白精彩久久| 日本美女一区二区| 亚洲第一二三四区| 亚洲一卡二卡三卡四卡无卡久久| 国产精品美女久久久久久2018| 久久久影视传媒| 精品毛片乱码1区2区3区 | 欧美日韩国产美女| 在线亚洲免费视频| 欧美日韩日日骚| 欧美主播一区二区三区| 欧美午夜在线观看| 欧美群妇大交群中文字幕| 欧美三区在线观看| 在线播放亚洲一区| 欧美日韩亚洲综合| 欧美一级午夜免费电影| 欧美一级二级三级蜜桃| 日韩欧美卡一卡二| 久久亚洲私人国产精品va媚药| 日韩一区二区在线看| 欧美精品一区二区久久久| 久久一区二区三区国产精品| 精品成人a区在线观看| 国产日本欧美一区二区| 国产精品久久久久一区| 亚洲柠檬福利资源导航| 亚洲一区二区三区在线播放| 日韩精品乱码免费| 六月丁香婷婷久久| 国产成人免费在线观看不卡| 成人精品高清在线| 在线视频国产一区| 日韩亚洲欧美高清| 国产色产综合色产在线视频| 中文字幕日韩一区二区| 亚洲国产精品一区二区www| 日韩成人精品视频| 黑人精品欧美一区二区蜜桃| 国产剧情一区在线| 97久久精品人人爽人人爽蜜臀| 欧美亚洲自拍偷拍| 日韩欧美三级在线| 综合欧美一区二区三区| 日韩成人一区二区| 国产成a人亚洲| 在线观看亚洲a| 久久久久国产精品免费免费搜索| 国产精品色噜噜| 麻豆精品在线视频| 色综合天天在线| 欧美精品一区二区精品网| 亚洲精品ww久久久久久p站| 麻豆成人91精品二区三区| 99精品久久99久久久久| 日韩视频一区二区在线观看| 亚洲女爱视频在线| 丁香啪啪综合成人亚洲小说 | av午夜精品一区二区三区| 欧美一区二区在线视频|