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

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

?? start12.c

?? 使用摩托羅拉PC9SDG128B單片機開發具有CAN通訊功能的設備
?? 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一区二区三区免费野_久草精品视频
欧美zozozo| 亚洲伦理在线免费看| 日本一区二区视频在线观看| 亚洲乱码日产精品bd| 狠狠色2019综合网| 欧美日韩精品系列| 亚洲美女视频在线观看| 韩国三级电影一区二区| 欧美日韩一区三区| 中文字幕字幕中文在线中不卡视频| 青青草国产成人av片免费| 色综合色狠狠天天综合色| 国产亚洲制服色| 紧缚捆绑精品一区二区| 在线观看91精品国产麻豆| 亚洲激情第一区| 欧美日韩小视频| 欧美一区二区三区日韩视频| 国产精品视频一二| 国产原创一区二区三区| 日韩精品一区二区三区视频播放 | 欧美三级午夜理伦三级中视频| 亚洲国产精品v| 精品无人码麻豆乱码1区2区 | 日韩电影免费一区| 欧美日韩卡一卡二| 无吗不卡中文字幕| 欧美视频在线观看一区二区| 亚洲欧美偷拍三级| 日本韩国一区二区三区视频| 亚洲欧洲日韩女同| 99久久久久久| 亚洲精品国产一区二区精华液 | 久久国产综合精品| 精品日韩在线一区| 国产精品资源站在线| 久久久午夜精品理论片中文字幕| 久久精品国产亚洲高清剧情介绍| 91精品国产品国语在线不卡| 日本最新不卡在线| 欧美va亚洲va| 国产精品夜夜嗨| 国产精品黄色在线观看| 91精品国产色综合久久ai换脸| 亚洲高清久久久| 在线播放中文一区| 紧缚奴在线一区二区三区| 久久久久99精品一区| 懂色av中文一区二区三区| 中文字幕一区二区三区精华液| 99精品国产视频| 亚洲va欧美va人人爽| 日韩欧美在线网站| 丁香六月久久综合狠狠色| 中文字幕日韩av资源站| 欧美中文字幕一区二区三区亚洲| 午夜精品一区在线观看| 欧美成人a视频| 国产91色综合久久免费分享| 亚洲精品老司机| 91精品国产综合久久久蜜臀图片| 精品一区二区三区免费视频| 国产精品国产三级国产aⅴ中文| 欧美丝袜自拍制服另类| 黄色小说综合网站| 亚洲日本乱码在线观看| 日韩欧美国产一二三区| 成人av网在线| 美女一区二区视频| 中文字幕日韩欧美一区二区三区| 91麻豆精品国产91久久久使用方法 | 日本一区二区成人在线| 精品视频免费在线| 成人午夜精品在线| 日韩精品欧美精品| 国产精品国产自产拍在线| 制服丝袜中文字幕一区| 白白色亚洲国产精品| 久久精品免费观看| 一区二区三区产品免费精品久久75| 欧美一区二区美女| 91色视频在线| 国产成人在线观看免费网站| 一区二区三区四区精品在线视频| 精品国产91久久久久久久妲己| 色婷婷综合五月| 懂色av一区二区三区蜜臀 | 国产一区二区精品久久99| 亚洲一区二区三区四区不卡| 国产欧美va欧美不卡在线| 欧美一区二区视频在线观看| 色综合中文综合网| 日韩精品五月天| 夜夜夜精品看看| 国产精品视频第一区| 日韩欧美国产综合在线一区二区三区| 91碰在线视频| 成人精品国产免费网站| 国产一区二区视频在线| 日本欧洲一区二区| 午夜精品久久久久久| 一区二区三区日韩精品| 综合网在线视频| 国产精品免费丝袜| 国产精品区一区二区三区| 久久精品亚洲精品国产欧美kt∨| 日韩欧美一级二级三级久久久| 欧美精品aⅴ在线视频| 在线免费亚洲电影| 在线观看亚洲精品| 在线视频欧美区| 欧洲av在线精品| 欧美日韩国产综合视频在线观看| 91啦中文在线观看| 欧美自拍丝袜亚洲| 欧美无砖砖区免费| 欧美男女性生活在线直播观看| 在线看国产日韩| 欧美精品视频www在线观看| 欧美优质美女网站| 欧美人狂配大交3d怪物一区| 欧美中文字幕亚洲一区二区va在线| 在线观看一区不卡| 欧美人与禽zozo性伦| 欧美一区二区性放荡片| 欧美精品一区二区在线播放| 久久你懂得1024| 国产精品国产精品国产专区不片| 成人免费在线播放视频| 夜夜揉揉日日人人青青一国产精品 | 精品播放一区二区| 欧美经典一区二区三区| 日本一区二区综合亚洲| 一区二区三区四区不卡在线| 亚洲成人7777| 韩国欧美一区二区| av影院午夜一区| 欧美三级电影精品| 欧美大片在线观看一区二区| 中文一区二区在线观看| 亚洲综合激情网| 久久激情综合网| av动漫一区二区| 欧美二区在线观看| 欧美经典一区二区三区| 亚洲图片欧美综合| 国产成人高清在线| 在线一区二区观看| 亚洲精品一区二区三区影院| 国产精品久久久久久久裸模 | 欧美精品 日韩| 久久你懂得1024| 亚洲午夜视频在线| 国产精品综合av一区二区国产馆| 91女厕偷拍女厕偷拍高清| 欧美一区二区三区视频在线| 国产色91在线| 天堂资源在线中文精品| 成人黄色一级视频| 日韩一区二区不卡| 亚洲乱码中文字幕| 国产成人aaaa| 日韩午夜电影在线观看| 亚洲日本电影在线| 国产乱子伦视频一区二区三区| 在线观看精品一区| 国产欧美一区二区精品仙草咪| 午夜日韩在线电影| 99久久精品国产精品久久| 精品欧美乱码久久久久久| 亚洲综合色视频| 99国产麻豆精品| 国产亚洲成av人在线观看导航| 日韩激情中文字幕| 欧美中文字幕一区二区三区亚洲| 中文欧美字幕免费| 国产一区二区免费视频| 91精品国产欧美一区二区18| 夜夜精品浪潮av一区二区三区| 国产剧情一区在线| 日韩欧美国产电影| 婷婷亚洲久悠悠色悠在线播放| 一本高清dvd不卡在线观看| 国产亚洲精品aa午夜观看| 开心九九激情九九欧美日韩精美视频电影 | 激情六月婷婷久久| 777精品伊人久久久久大香线蕉| 有坂深雪av一区二区精品| 成人黄色免费短视频| 国产日韩欧美不卡在线| 国产精品一区在线观看你懂的| 日韩一级成人av| 蜜臀久久久99精品久久久久久| 欧美日韩电影在线| 性做久久久久久久免费看| 欧美亚洲综合一区| 亚洲成av人片一区二区梦乃| 欧美视频在线一区二区三区| 香蕉乱码成人久久天堂爱免费| 欧美日韩电影在线播放|