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

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

?? start12.c

?? 飛思卡爾codewarrior程序開發中關于led應用的工程范例
?? 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一区二区三区免费野_久草精品视频
日本高清免费不卡视频| 日本一区二区三区在线不卡 | 日韩免费电影网站| 国产精品免费免费| 久久国产麻豆精品| 91色婷婷久久久久合中文| 日韩一级片在线播放| 亚洲日本电影在线| 国产又黄又大久久| 91精品国产综合久久香蕉的特点| 国产精品色一区二区三区| 成人动漫一区二区在线| 日韩一区二区三区免费观看| 一区二区在线电影| 成人一级视频在线观看| 日韩欧美电影一二三| 一个色妞综合视频在线观看| 成人黄色小视频| 久久你懂得1024| 久久精品久久99精品久久| 色天使色偷偷av一区二区| 中文字幕一区二区三区精华液| 国产精品一品视频| 精品粉嫩超白一线天av| 久久精品久久99精品久久| 欧美日韩色综合| 亚洲国产成人高清精品| 色激情天天射综合网| 最新中文字幕一区二区三区| 丁香婷婷综合色啪| 久久久久久久久伊人| 国产成人精品一区二| 欧美国产综合一区二区| 国产成人免费av在线| 国产日韩欧美麻豆| 不卡视频在线看| 亚洲欧美影音先锋| 色噜噜狠狠一区二区三区果冻| 亚洲欧洲三级电影| 一本大道久久a久久综合| 亚洲免费观看高清完整版在线| 成人激情图片网| 综合av第一页| 欧美日精品一区视频| 天天av天天翘天天综合网| 欧美精品一二三区| 精品在线你懂的| 国产日韩欧美一区二区三区综合| 成人一区二区三区视频 | 亚洲午夜羞羞片| 欧美日本精品一区二区三区| 日韩**一区毛片| 久久久久国产精品免费免费搜索| 国产精选一区二区三区| 日韩美女啊v在线免费观看| 色视频一区二区| 免费在线观看视频一区| 久久久五月婷婷| 色天使色偷偷av一区二区| 青娱乐精品视频在线| 国产欧美日韩精品在线| 欧美欧美午夜aⅴ在线观看| 久久国产综合精品| 国产精品国产三级国产三级人妇 | 激情小说亚洲一区| 国产喷白浆一区二区三区| 日本乱人伦aⅴ精品| 免费人成精品欧美精品| 国产精品视频一二| 欧美电影一区二区| 丰满白嫩尤物一区二区| 亚洲国产精品久久久久婷婷884 | 国产拍揄自揄精品视频麻豆| 92国产精品观看| 日本伊人精品一区二区三区观看方式| 精品久久久久久久久久久院品网| 成人黄色在线网站| 免费成人美女在线观看| 亚洲日本免费电影| 精品国产99国产精品| 91麻豆福利精品推荐| 久久国产夜色精品鲁鲁99| 亚洲另类中文字| 精品国产一区二区三区av性色| 日韩精品一区二区三区四区| 成人精品一区二区三区四区 | 国产精品入口麻豆九色| 日韩亚洲欧美在线观看| 91日韩在线专区| 国产成人精品影视| 韩国一区二区三区| 天天综合天天做天天综合| 亚洲色图一区二区| 欧美激情中文不卡| 日韩三级免费观看| 欧美喷潮久久久xxxxx| 日本精品视频一区二区| 国产成人高清在线| 韩国精品在线观看| 美女脱光内衣内裤视频久久网站 | 久久蜜桃av一区二区天堂| 在线电影欧美成精品| 欧美中文字幕亚洲一区二区va在线| 国产91丝袜在线观看| 国产又粗又猛又爽又黄91精品| 日本免费新一区视频| 日韩av不卡一区二区| 视频在线观看一区| 性做久久久久久免费观看欧美| 亚洲人精品午夜| 国产精品美女久久久久aⅴ| 国产欧美一二三区| 欧美国产视频在线| 亚洲欧洲一区二区三区| 国产精品不卡一区二区三区| 国产精品久久久久久亚洲毛片| 国产日本欧洲亚洲| 国产欧美一区二区精品忘忧草| 国产亚洲一区二区在线观看| 国产三级欧美三级| 日本一区二区久久| 中文字幕一区二区三区视频| 亚洲老司机在线| 婷婷综合五月天| 奇米色777欧美一区二区| 麻豆国产欧美日韩综合精品二区| 91蜜桃婷婷狠狠久久综合9色| av不卡一区二区三区| 一本久久综合亚洲鲁鲁五月天| 一本色道久久加勒比精品| 欧美日韩在线综合| 日韩免费在线观看| 国产拍揄自揄精品视频麻豆| 中文字幕av一区二区三区 | 久久免费看少妇高潮| 国产精品网站一区| 亚洲国产精品一区二区www在线 | 国产成人精品综合在线观看 | 7777精品伊人久久久大香线蕉的 | 国产日产欧美一区| 一二三四社区欧美黄| 久久综合综合久久综合| 国产剧情一区在线| 欧美中文字幕一二三区视频| 日韩亚洲欧美中文三级| 国产精品丝袜久久久久久app| 亚洲一区二区美女| 国产一区二区三区蝌蚪| 久久伊人中文字幕| 国产精品久久久久久亚洲毛片| 一区二区三区欧美激情| 久久国产日韩欧美精品| 9i看片成人免费高清| 欧美一区二区三区免费视频| 国产日韩精品视频一区| 日韩精品福利网| 成人黄色av电影| 欧美一区二区视频网站| 国产精品久久久久aaaa| 青椒成人免费视频| 99re这里只有精品首页| 亚洲人成影院在线观看| 日本一区中文字幕 | 精品一区二区三区在线播放 | 亚洲欧洲美洲综合色网| 天堂在线一区二区| jiyouzz国产精品久久| 91精品国产色综合久久久蜜香臀| 日本一区二区三级电影在线观看| 亚洲国产一区视频| 国产91丝袜在线18| 日韩亚洲欧美中文三级| 亚洲精品乱码久久久久久| 国产成人精品亚洲777人妖| 欧美精选一区二区| 亚洲黄色片在线观看| 国产成人av一区二区三区在线观看| 欧美在线不卡一区| 欧美高清在线精品一区| 国产在线精品一区在线观看麻豆| 欧美日韩精品电影| 亚洲精品久久7777| 成人午夜又粗又硬又大| 欧美一级日韩不卡播放免费| 一区二区三区电影在线播| 成人动漫一区二区在线| 国产欧美日韩综合| 国产一区二区91| 欧美成人伊人久久综合网| 日日夜夜精品视频免费| 在线一区二区观看| 亚洲卡通动漫在线| 91官网在线免费观看| 亚洲天天做日日做天天谢日日欢 | 精品国产伦一区二区三区观看方式| 亚洲一区成人在线| 日本丶国产丶欧美色综合| 亚洲男同性恋视频| 色婷婷精品久久二区二区蜜臂av| 国产精品成人一区二区三区夜夜夜|