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

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

?? start12.c

?? 飛思卡爾相關的codewarrior程序開發(fā)PortucosiiV252工程范例
?? C
字號:
/*****************************************************
      start12.c - standard startup code
   The startup code may be optimized to special user requests
 ----------------------------------------------------
   Copyright (c) Metrowerks, Basel, Switzerland
               All rights reserved
                  Do not modify!

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.
 *****************************************************/

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

#if defined(__PROCESSOR_X4__)    /* In some early version DBNE/... did not work. */
#define DO_NOT_USE_TEST_BRANCHES 1 /* Do not use DBNE/TBEQ,.... */
#else
#define DO_NOT_USE_TEST_BRANCHES 0 /* Do use DBNE/TBEQ,.... */
#endif

#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
#if defined(FAR_DATA)
#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. */

#ifdef __cplusplus
  extern "C"
#endif
void _SET_PAGE(void);             /* the inline assembler needs a prototype */
                                  /* this is a runtime routine with a special */
                                  /* calling convention, dont use it in c code! */
static void Init(void);
static void Fini(void);
#else
#include "default.sgm"
#if defined( __BANKED__) || defined(__LARGE__)
static void __far Init(void);
static void __far Fini(void);
#endif /* defined( __BANKED__) || defined(__LARGE__) */
#endif /* FAR_DATA */

/* define value and bits for Windef Register */

#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


#if !defined(FAR_DATA) && (defined( __BANKED__) || defined(__LARGE__))
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
#ifdef FAR_DATA
             LDAB  1,X+                     ; load page of destination address
             LDY   2,X+                     ; load offset of destination address
             __PIC_JSR(_SET_PAGE)                ; sets the page in the correct page register
#else   /* FAR_DATA */
             LDY   2,X+                     ; start address and advance *pZeroOut (X = X+4)
#endif  /* FAR_DATA */
             LDD   2,X+                     ; byte count
NextWord:    CLR   1,Y+                     ; clear memory byte

#if DO_NOT_USE_TEST_BRANCHES
             SUBD  #1                       ; for processor version which does not support DBNE
             BNE NextWord
#else
             DBNE  D, NextWord              ; dec byte count
#endif
             PULY                           ; restore nofZeroOuts
             DEY                            ; dec nofZeroOuts
             BNE  NextZeroOut
CopyDown:
#ifdef __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
             __PIC_JSR(_SET_PAGE)           ; sets the destinations page register
             PULD                           ; restore counter
#else  /* FAR_DATA */
             LDY   2,X+                     ; load destination address
#endif /* FAR_DATA */

Copy:
             MOVB  1,X+,1,Y+                ; move a byte from ROM to the data area
#if DO_NOT_USE_TEST_BRANCHES
             SUBD  #1                       ; for processor version which does not support DBNE
             BNE    Copy
#else
             DBNE  D,Copy                   ; copy-byte loop
#endif
             BRA   NextBlock
funcInits:                                  ; call of global construtors is only in c++ necessary
#if defined(__cplusplus)
#if defined(__ELF_OBJECT_FILE_FORMAT__)
#if defined( __BANKED__) || defined(__LARGE__)

             LDY   _startupData.nofInitBodies; load number of cpp.
             BEQ   done                     ; if cppcount == 0, goto done
             LDX   _startupData.initBodies  ; load address of first module to initialize
nextInit:
             LEAX   3,X                     ; increment to next init
             PSHX                           ; save address of next function to initialize
             PSHY                           ; save cpp counter
             CALL  [-3,X]                   ; use double indirect call to load the page register also
             PULY                           ; restore cpp counter
             PULX                           ; restore actual address
             DEY                            ; decrement cpp counter
             BNE    nextInit
#else  /* defined( __BANKED__) || defined(__LARGE__) */

             LDD   _startupData.nofInitBodies; load number of cpp.
             BEQ   done                     ; if cppcount == 0, goto done
             LDX   _startupData.initBodies  ; load address of first module to initialize
nextInit:
             LDY   2,X+                     ; load address of first module to initialize
             PSHD
             PSHX                           ; save actual address
             JSR   0,Y                      ; call initialization function
             PULX                           ; restore actual address
             PULD                           ; restore cpp counter
#if DO_NOT_USE_TEST_BRANCHES
             SUBD   #1                      ; decrement cpp counter
             BNE    nextInit
#else
             DBNE D, nextInit
#endif
#endif /* defined( __BANKED__) || defined(__LARGE__) */
#else /* __ELF_OBJECT_FILE_FORMAT__  */
             LDX   _startupData.mInits      ; load address of first module to initialize
#if defined( __BANKED__) || defined(__LARGE__)
nextInit:    LDY   3,X+                     ; load address of initialization function
             BEQ   done                     ; stop when address  == 0
                                            ; in common environments the offset of a function is never 0, so this test could be avoided
#ifdef __InitFunctionsMayHaveOffset0__
             BRCLR -1,X, done, 0xff         ; stop when address  == 0
#endif  /* __InitFunctionsMayHaveOffset0__ */
             PSHX                           ; save address of next function to initialize
             CALL  [-3,X]                   ; use double indirect call to load the page register also
#else  /* defined( __BANKED__) || defined(__LARGE__) */
nextInit:
             LDY   2,X+                     ; load address of first module to initialize
             BEQ   done                     ; stop when address of function == 0
             PSHX                           ; save actual address
             JSR   0,Y                      ; call initialization function
#endif /* defined( __BANKED__) || defined(__LARGE__) */
             PULX                           ; restore actual address
             BRA   nextInit
#endif  /* __ELF_OBJECT_FILE_FORMAT__  */
done:
#endif /* __cplusplus */
   }
}

#if defined( __ELF_OBJECT_FILE_FORMAT__) && defined(__cplusplus )

#if !defined(FAR_DATA) && (defined( __BANKED__) || defined(__LARGE__))
static void __far Fini(void)
#else
static void Fini(void)
#endif
{
/* purpose:     1) call global destructors in C++ */
   __asm {
#if defined( __BANKED__) || defined(__LARGE__)

             LDY   _startupData.nofFiniBodies; load number of cpp.
             BEQ   done                     ; if cppcount == 0, goto done
             LDX   _startupData.finiBodies  ; load address of first module to finalize
nextInit2:
             LEAX   3,X                     ; increment to next init
             PSHX                           ; save address of next function to finalize
             PSHY                           ; save cpp counter
             CALL  [-3,X]                   ; use double indirect call to load the page register also
             PULY                           ; restore cpp counter
             PULX                           ; restore actual address
             DEY                            ; decrement cpp counter
             BNE    nextInit2
#else  /* defined( __BANKED__) || defined(__LARGE__) */

             LDD   _startupData.nofFiniBodies; load number of cpp.
             BEQ   done                     ; if cppcount == 0, goto done
             LDX   _startupData.finiBodies  ; load address of first module to finalize
nextInit2:
             LDY   2,X+                     ; load address of first module to finalize
             PSHD
             PSHX                           ; save actual address
             JSR   0,Y                      ; call finalize function
             PULX                           ; restore actual address
             PULD                           ; restore cpp counter
#if DO_NOT_USE_TEST_BRANCHES
             SUBD   #1                      ; decrement cpp counter
             BNE    nextInit2
#else
             DBNE D, nextInit2
#endif
#endif /* defined( __BANKED__) || defined(__LARGE__) */
done:;
   }
}
#endif


#include "non_bank.sgm"

#pragma MESSAGE DISABLE C12053 /* Stack-pointer change not in debugging-information */
#pragma NO_FRAME
#pragma NO_ENTRY
#pragma NO_EXIT

#ifdef __cplusplus
  extern "C"
#endif

/* The function _Startup must be called in order to initialize global variables and to call main */
/* You can adapt this function or call it from your startup code to implement a different startup */
/* functionality. */

/* You should also setup the needed IO registers as WINDEF (HC12A4 only) or the COP registers to run */
/* on hardware */

/* to set the reset vector several ways are possible : */
/* 1. define the function with "interrupt 0" as done below in the first case */
/* 2. add the following line to your prm file : VECTOR ADDRESS 0xfffe _Startup */
/* of course, even more posibilities exists */
/* the reset vector must be set so that the application has a defined entry point */

#define STARTUP_FLAGS_NOT_INIT_SP   (1<<1)

#if defined(__SET_RESET_VECTOR__)
void __interrupt 0 _Startup(void) {
#else
void _Startup(void) {
#endif
/*  purpose:    1)  initialize the stack
                2)  initialize the RAM, copy down init data etc (Init)
                3)  call main;
    parameters: NONE
    called from: _PRESTART-code generated by the Linker */
  for(;;) { /* forever: initialize the program; call the root-procedure */
      if (!(_startupData.flags&STARTUP_FLAGS_NOT_INIT_SP)) {
        /* initialize the stack pointer */
        INIT_SP_FROM_STARTUP_DESC(); /* HLI macro definition in hidef.h */
      }
      /* Here user defined code could be inserted, the stack could be used */


      /* Example : Set up WinDef Register to allow Paging */
#ifdef HC812A4 /* HC12 A4 derivative needs WINDEF to configure which pages are available */
#if  (__ENABLE_EPAGE__ != 0 ||  __ENABLE_DPAGE__ != 0 || __ENABLE_PPAGE__ != 0)
      WINDEF= __ENABLE_EPAGE__ | __ENABLE_DPAGE__  | __ENABLE_PPAGE__;
#endif
#endif
      Init(); /* zero out, copy down, call constructors */
      /* Here user defined code could be inserted, all global variables are initilized */

      /* call main() */
      (*_startupData.main)();

      /* call destructors. Only done when this file is compiled as C++ and for the ELF object file format */
      /* the HIWARE object file format does not support this */
#if defined( __ELF_OBJECT_FILE_FORMAT__) && defined(__cplusplus )
      Fini();
#endif

   }; /* end loop forever */
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
《视频一区视频二区| 久久99精品国产| 精品一区二区三区蜜桃| 91在线免费播放| 精品国产91洋老外米糕| 亚洲一区二区在线免费看| 国产.欧美.日韩| 26uuu精品一区二区在线观看| 亚洲综合在线视频| 丁香六月久久综合狠狠色| 欧美一区二区国产| 亚洲大片在线观看| 在线观看亚洲a| 亚洲色图欧美在线| 成人午夜视频免费看| 欧美精品一区二区蜜臀亚洲| 五月婷婷久久综合| 欧美日韩久久久| 亚洲激情第一区| 97se狠狠狠综合亚洲狠狠| 亚洲国产成人在线| 成人午夜视频在线观看| 久久精品网站免费观看| 激情五月婷婷综合网| 精品久久久久久无| 韩国三级在线一区| 久久亚洲一级片| 国产麻豆9l精品三级站| 久久婷婷综合激情| 国产成人亚洲精品青草天美| 久久影院午夜论| 国产a久久麻豆| 国产精品伦一区二区三级视频| 国产成人自拍网| 国产精品久久久久久妇女6080| 国产成人精品免费| 亚洲天天做日日做天天谢日日欢| 成人av电影在线网| 一区二区三区在线影院| 在线观看日韩一区| 日韩国产高清影视| www久久久久| 成+人+亚洲+综合天堂| 亚洲欧洲日韩综合一区二区| 91玉足脚交白嫩脚丫在线播放| 亚洲欧美精品午睡沙发| 欧美日韩精品欧美日韩精品| 开心九九激情九九欧美日韩精美视频电影| 日韩亚洲欧美中文三级| 国产乱码精品一区二区三区忘忧草 | 精品国产1区2区3区| 老司机精品视频导航| 欧美国产精品v| 91久久精品网| 久久精品国产在热久久| 国产日产欧美一区| 在线一区二区视频| 久久91精品国产91久久小草| 中文一区二区在线观看| 欧美色图免费看| 激情成人综合网| 亚洲欧美偷拍另类a∨色屁股| 欧美丰满一区二区免费视频 | 精品日韩99亚洲| av在线不卡观看免费观看| 视频一区欧美日韩| 国产欧美一区二区三区在线老狼| 一本大道久久a久久综合| 日韩电影在线一区二区三区| 国产精品免费视频一区| 91精品综合久久久久久| 不卡电影免费在线播放一区| 日本成人在线视频网站| 中文字幕中文字幕在线一区| 日韩欧美一级二级| 在线观看一区不卡| 国产成人免费xxxxxxxx| 日本不卡免费在线视频| 亚洲三级在线免费| 久久久精品免费观看| 欧美日韩国产在线观看| 99综合电影在线视频| 久久99国产精品久久99| 亚洲综合精品自拍| 亚洲欧洲成人av每日更新| www国产亚洲精品久久麻豆| 欧美午夜片在线观看| 成人动漫精品一区二区| 久久成人免费网| 五月激情综合色| 一区二区三区在线播| 国产精品家庭影院| 国产亚洲美州欧州综合国| 日韩精品一区二区三区视频| 欧美色图第一页| 欧美性猛交xxxx黑人交| 成人97人人超碰人人99| 国产ts人妖一区二区| 韩国三级中文字幕hd久久精品| 日韩成人av影视| 香蕉成人伊视频在线观看| 亚洲欧美二区三区| 亚洲欧美日韩成人高清在线一区| 国产拍揄自揄精品视频麻豆| 久久精品一区蜜桃臀影院| 精品国产欧美一区二区| 日韩欧美在线一区二区三区| 欧美日韩国产精选| 欧美日韩国产区一| 在线91免费看| 这里只有精品99re| 宅男噜噜噜66一区二区66| 在线综合视频播放| 日韩女优电影在线观看| 日韩三区在线观看| 2020国产精品久久精品美国| 欧美刺激午夜性久久久久久久| 欧美一级高清片| 精品三级在线观看| 国产亚洲成av人在线观看导航| 久久精品视频免费| 国产精品福利av| 亚洲激情中文1区| 亚洲电影在线免费观看| 日韩中文欧美在线| 激情综合色播激情啊| 国产91丝袜在线观看| av中文字幕一区| 欧美亚洲国产一区二区三区va | 久久精品久久综合| 国产高清不卡一区| youjizz国产精品| 欧美在线观看一二区| 91麻豆精品国产自产在线观看一区| 91精品国产综合久久精品性色| 26uuu精品一区二区| 中文字幕在线不卡一区 | 国产suv精品一区二区三区| 成人国产亚洲欧美成人综合网| 91黄视频在线| 欧美日本在线播放| 99久久99久久精品免费看蜜桃 | 一本到高清视频免费精品| 91福利社在线观看| 日韩一区二区不卡| 中文字幕免费不卡| 午夜电影网亚洲视频| 国产做a爰片久久毛片| 色综合亚洲欧洲| 日韩精品一区二区三区老鸭窝 | 国产亚洲成aⅴ人片在线观看 | 国产精品久久久久永久免费观看| 亚洲黄一区二区三区| 国产综合色精品一区二区三区| voyeur盗摄精品| 日韩欧美一级二级三级| 日韩理论在线观看| 国内精品久久久久影院一蜜桃| 99精品国产热久久91蜜凸| 蜜臀av性久久久久蜜臀aⅴ| 国产精品亚洲成人| 欧美写真视频网站| 国产欧美1区2区3区| 日本欧美一区二区三区乱码| 成人性视频免费网站| 91精品国产欧美日韩| 亚洲三级电影全部在线观看高清| 美女任你摸久久| 精品视频全国免费看| 国产精品丝袜一区| 激情av综合网| 91麻豆精品国产自产在线| √…a在线天堂一区| 国产精品中文字幕一区二区三区| 欧美亚洲国产一卡| 亚洲日本va在线观看| 国产另类ts人妖一区二区| 欧美二区在线观看| 亚洲在线视频网站| 成人深夜在线观看| 国产欧美日本一区二区三区| 久久精品国产成人一区二区三区| 在线观看一区日韩| 亚洲乱码日产精品bd| 色综合久久久久综合| 中文字幕亚洲不卡| 91精品国产色综合久久ai换脸| 欧美色偷偷大香| 亚洲人成电影网站色mp4| 国产91丝袜在线观看| 久久精品视频在线看| 国产在线精品免费av| www一区二区| 国产精品一卡二卡在线观看| 日韩一级大片在线| 久久精品国产亚洲5555| 欧美一区二区日韩一区二区| 亚洲一级二级三级在线免费观看| 日本福利一区二区| 亚洲午夜久久久久|