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

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

?? start12.c

?? ucossii的相關代碼
?? C
字號:
/*****************************************************
      start12.c - standard startup code
   The startup code may be optimized to special user requests
 ----------------------------------------------------
   Copyright (c) HIWARE AG, 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__) || defined(__HC12S__)    /* 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

#if defined(__HC12S__) && (defined(FAR_DATA) || defined(__BANKED__))
#error /* no banked support */
#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 __HC12S__
             LDY   0,X                      ; start address and advance *pZeroOut (X = X+4)
             LDD   2,X                      ; byte count
             LEAX  4,X
NextWord:    CLR   0,Y                      ; clear memory byte
             INY
#else  /* __HC12S__ */
#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
#endif /* __HC12S__ */
#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:
#ifdef __HC12S__
             LDD   0,X                      ; size of init-data -> D
             BEQ   funcInits                ; end of copy down desc.
             LDY   2,X                      ; load destination address
             LEAX  4,X                      ; increment pointer
#else /* __HC12S__ */
             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 */
#endif /* __HC12S__ */
Copy:
#ifdef __HC12S__
             PSHA                          ; move a byte from ROM to the data area
             LDAA  0,X
             STAA  0,Y
             PULA
             INX
             INY
#else  /* __HC12S__ */
             MOVB  1,X+,1,Y+                ; move a byte from ROM to the data area
#endif /* __HC12S__ */
#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:
#ifdef __HC12S__
             LDY   0,X                      ; load address of first module to initialize
             LEAX  2,X                      ; increment pointer
#else  /* __HC12S__ */
             LDY   2,X+                     ; load address of first module to initialize
#endif /* __HC12S__ */
             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:
#ifdef __HC12S__
             LDY   0,X                      ; load address of first module to initialize
             LEAX  2,X                      ; increment pointer
#else  /* __HC12S__ */
             LDY   2,X+                     ; load address of first module to initialize
#endif /* __HC12S__ */
             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:
#ifdef __STAR12__
             LDY   0,X                      ; load address of first module to finalize
             LEAX  2,X                      ; increment pointer
#else  /* __STAR12__ */
             LDY   2,X+                     ; load address of first module to finalize
#endif /* __STAR12__ */
             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 */
#ifndef DG128 /* HC12 DG128 derivative has no WINDEF. Instead PPAGE is always enabled */
#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一区二区三区免费野_久草精品视频
偷拍一区二区三区| 韩国精品一区二区| 亚洲国产一区二区三区青草影视| 国产丝袜美腿一区二区三区| 亚洲一级不卡视频| 亚洲午夜国产一区99re久久| 亚洲伦理在线精品| 国产在线不卡一卡二卡三卡四卡| 精品在线视频一区| 成人app软件下载大全免费| 欧美日韩性生活| 精品国产一区久久| 一区二区三区国产| 国产一区二区三区在线观看免费 | 国产欧美精品一区二区三区四区| 亚洲欧美综合在线精品| 另类的小说在线视频另类成人小视频在线| 国产精一品亚洲二区在线视频| 色偷偷久久一区二区三区| 日韩一区二区电影网| 国产日韩欧美综合在线| 欧美日韩精品一区二区三区四区 | 在线不卡中文字幕| 精品国产乱码久久久久久牛牛| 亚洲欧洲日韩av| 国内精品自线一区二区三区视频| 99久久99久久综合| 在线成人小视频| 一区二区不卡在线播放| 国产一区二区视频在线播放| 一本大道久久a久久精二百| 欧美三级三级三级| 中文字幕在线观看一区二区| 国产福利不卡视频| 久久婷婷成人综合色| 丝袜脚交一区二区| 欧美日韩免费视频| 亚洲成人av免费| 欧美精品日韩精品| 一区二区三区成人| 色婷婷av一区二区三区大白胸 | 亚洲高清免费视频| 色婷婷国产精品| 夜夜嗨av一区二区三区四季av| 色狠狠av一区二区三区| 亚洲一区中文日韩| 欧美日韩一二三区| 午夜精品一区二区三区免费视频| 色老头久久综合| 天天色天天操综合| 精品国免费一区二区三区| 国产1区2区3区精品美女| 中文一区二区完整视频在线观看| 国产乱码精品一区二区三区五月婷| 欧美高清激情brazzers| 久久电影网电视剧免费观看| 欧美激情综合网| 亚洲大片一区二区三区| 欧美欧美欧美欧美首页| 九九视频精品免费| 亚洲午夜电影网| 精品精品欲导航| 成人性生交大合| 肉肉av福利一精品导航| 国产精品久久福利| 欧美人妖巨大在线| 91视视频在线观看入口直接观看www | 日韩一区和二区| 在线精品观看国产| 成人永久aaa| 国产乱码一区二区三区| 一区二区三区影院| 精品毛片乱码1区2区3区| 99久久久久免费精品国产 | 色综合 综合色| 国产精品主播直播| 韩国三级在线一区| 奇米888四色在线精品| 国产精品久久久久久久久图文区 | 亚洲尤物在线视频观看| 欧美激情一区二区三区蜜桃视频| 欧美一区二区久久久| 色欧美日韩亚洲| 色综合天天在线| 色哟哟国产精品| www.亚洲色图.com| 一本大道久久精品懂色aⅴ| 成人av资源下载| 色嗨嗨av一区二区三区| 欧美日本韩国一区| 欧美一级日韩一级| 久久嫩草精品久久久精品| 国产天堂亚洲国产碰碰| 成人欧美一区二区三区视频网页 | 七七婷婷婷婷精品国产| 日韩av一级片| 成人福利视频网站| 日本精品一级二级| 欧美日韩在线观看一区二区| 欧美精选一区二区| 国产欧美日韩麻豆91| 成人欧美一区二区三区视频网页| 成人欧美一区二区三区在线播放| 亚洲综合久久av| 国产成人免费网站| 欧美日韩中文一区| 国产欧美日韩不卡免费| 亚洲成人动漫一区| 国产jizzjizz一区二区| 欧美疯狂性受xxxxx喷水图片| 2020国产精品自拍| 亚洲成a天堂v人片| 99久久99久久久精品齐齐| 欧美videos大乳护士334| 亚洲另类在线视频| 国产成人综合在线| 这里是久久伊人| 一区二区三区欧美亚洲| 国产成人精品网址| 欧美成人精品高清在线播放| 亚洲综合偷拍欧美一区色| 日本乱人伦一区| 日本中文字幕不卡| 欧美tk丨vk视频| 喷白浆一区二区| 久久久久久久综合狠狠综合| 国产精品一二三四| 久久久精品影视| 99精品黄色片免费大全| 《视频一区视频二区| 91在线国产观看| 亚洲精品欧美激情| 91在线观看成人| 激情综合一区二区三区| 久久久久久久性| 91麻豆自制传媒国产之光| 一区二区三区在线播| 色婷婷av一区二区三区软件| 亚洲一区二区黄色| 精品1区2区在线观看| 粉嫩av亚洲一区二区图片| 亚洲欧洲制服丝袜| 日韩天堂在线观看| 91美女片黄在线观看| 老司机午夜精品99久久| 亚洲日本护士毛茸茸| 欧美日本一道本| 国产盗摄一区二区| 亚洲影视在线播放| 国产精品三级av在线播放| 91精品免费在线观看| 99精品视频在线播放观看| 丝瓜av网站精品一区二区 | 五月激情综合网| 国产人成一区二区三区影院| 欧美色网站导航| 91豆麻精品91久久久久久| 国产精品1区2区3区| 免费欧美在线视频| 亚洲午夜激情网站| 亚洲九九爱视频| 最新欧美精品一区二区三区| 久久久久久免费| 欧美高清在线视频| 欧美国产精品劲爆| 国产日韩欧美在线一区| 国产亚洲欧美色| 在线综合视频播放| 久久久久久久一区| 国产区在线观看成人精品| 亚洲精品一线二线三线无人区| 精品日韩成人av| 中文字幕一区二区三区不卡| 久久久亚洲国产美女国产盗摄 | 国产日产精品一区| 日韩欧美国产一二三区| 日韩你懂的在线观看| 精品国产免费一区二区三区四区| 精品粉嫩超白一线天av| 国产亚洲1区2区3区| 国产欧美日韩综合精品一区二区| 亚洲精品欧美在线| 精品亚洲成a人在线观看| 国产98色在线|日韩| 91免费版在线看| 欧美美女一区二区在线观看| 337p亚洲精品色噜噜狠狠| 久久久久九九视频| 亚洲成人av一区二区| 久久精品国产**网站演员| 不卡av在线免费观看| 日韩一级黄色大片| 伊人色综合久久天天人手人婷| 久久国产欧美日韩精品| 色综合天天综合狠狠| 精品毛片乱码1区2区3区| 午夜视黄欧洲亚洲| 成人免费视频一区| 欧美电视剧在线看免费| 亚洲二区视频在线|