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

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

?? flash2bin.c

?? ADAM2 sources (modified by Oleg)
?? C
字號:
/************************************************************************
 *
 *  flash2bin.c
 *
 *  Tool for conversion between flash format and binary format
 *
 *  flash2bin [<input-file> [<output-file>]]
 *
 *  $Id: flash2bin.c,v 1.1.1.1 2002/08/06 20:52:00 sneha Exp $
 *
 * ######################################################################
 *
 * Copyright (C) 1999 MIPS Technologies, Inc. All rights reserved.
 *
 * Unpublished rights reserved under the Copyright Laws of the United
 * States of America.
 *
 * This document contains information that is confidential and proprietary
 * to MIPS Technologies, Inc. and may be disclosed only to those employees
 * of MIPS Technologies, Inc. with a need to know, or as otherwise
 * permitted in writing by MIPS Technologies, Inc. or a
 * contractually-authorized third party. Any copying, modifying, use or
 * disclosure of this information (in whole or in part) which is not
 * expressly permitted in writing by MIPS Technologies, Inc. or a
 * contractually-authorized third party is strictly prohibited. At a
 * minimum, this information is protected under trade secret and unfair
 * competition laws and the expression of the information contained herein
 * is protected under federal copyright laws. Violations thereof may
 * result in criminal penalties and fines.
 *
 * MIPS Technologies, Inc. or any contractually-authorized third party
 * reserves the right to change the information contained in this document
 * to improve function, design or otherwise. MIPS Technologies, Inc. does
 * not assume any liability arising out of the application or use of this
 * information. Any license under patent rights or any other intellectual
 * property rights owned by MIPS Technologies or third parties shall be
 * conveyed by MIPS Technologies, Inc. or any contractually-authorized
 * third party in a separate license agreement fully executed by the
 * parties.
 *
 * The information contained in this document constitutes "Commercial
 * Computer Software" or "Commercial Computer Software Documentation," as
 * described in FAR 12.212 for civilian agencies, and DFARS 227.7202 for
 * military agencies. This information may only be disclosed to the U.S.
 * Government, or to U.S. Government users, with prior written consent from
 * MIPS Technologies, Inc. or a contractually-authorized third party. Such
 * disclosure to the U.S. Government, or to U.S. Government users, shall
 * be subject to license terms and conditions at least as restrictive and
 * protective of the confidentiality of this information as the terms and
 * conditions used by MIPS Technologies, Inc. in its license agreements
 * covering this information.
 *
 ************************************************************************/


/************************************************************************
 *  Include files
 ************************************************************************/

#include <stdio.h>
#include <stdlib.h>

/************************************************************************
 *  Definitions
 ************************************************************************/

/************************************************************************
 *  Public variables
 ************************************************************************/

/************************************************************************
 *  Static variables
 ************************************************************************/

/************************************************************************
 *  Static function prototypes
 ************************************************************************/

static int 
getline( FILE *f, char line[], unsigned long *len ) ;


/************************************************************************
 *  Implementation : Public functions
 ************************************************************************/


/************************************************************************
 *                          main
 ************************************************************************/
int 
main(int argc,char **argv)
{
    unsigned long  len, c, current_adr, temp_adr ;
    FILE           *source ;
    FILE	   *destination ;
    int		   i;
    char	   line[200] ;
    char	   char2bin[256] ;
    int            bendian;
    int            sarg;

    sarg=1;
    bendian=1;

    if (!strcmp(argv[1],"-EB"))  
      {
      bendian=1;
      sarg++;
      }

    if (!strcmp(argv[1],"-EL"))  
      {
      bendian=0;
      sarg++;
      }
  
    source      = (argc > sarg) ? fopen( argv[sarg], "r" ) : stdin;

    if (source == NULL) 
    {
        printf("File %s does not exist\n", argv[sarg] );
        exit (EXIT_FAILURE);
    } 

    destination = (argc > sarg+1) ? fopen( argv[sarg+1], "w" ) : stdout;

    if (destination == NULL) 
    {
        printf("Could not create %s\n", argv[sarg+1] );
	fclose( source );
        exit (EXIT_FAILURE);
    } 

    for(i=0;i<256;i++)
    {
        char2bin[i] = -1 ;
    }
   
    char2bin['0'] = 0 ;
    char2bin['1'] = 1 ;
    char2bin['2'] = 2 ;
    char2bin['3'] = 3 ;
    char2bin['4'] = 4 ;
    char2bin['5'] = 5 ;
    char2bin['6'] = 6 ;
    char2bin['7'] = 7 ;
    char2bin['8'] = 8 ;
    char2bin['9'] = 9 ;

    char2bin['a'] = 0xa ;
    char2bin['b'] = 0xb ;
    char2bin['c'] = 0xc ;
    char2bin['d'] = 0xd ;
    char2bin['e'] = 0xe ;
    char2bin['f'] = 0xf ;
    char2bin['A'] = 0xa ;
    char2bin['B'] = 0xb ;
    char2bin['C'] = 0xc ;
    char2bin['D'] = 0xd ;
    char2bin['E'] = 0xe ;
    char2bin['F'] = 0xf ; 

    current_adr = 0 ;
    
    while( getline( source, line, &len ) )
    {
        if ( (line[0] == '@') && (len == 9) )
        {
            temp_adr = 0 ;
            for(i=0;i<4;i++)
            {
                if ( ( (char2bin[(line[(i*2)+1])]) != -1 ) &&
                     ( (char2bin[(line[(i*2)+2])]) != -1 ) )
                {
                    c = ( (char2bin[(line[(i*2)+1])] << 4) |
                          (char2bin[(line[(i*2)+2])])  ) ;
                }
                temp_adr <<= 8;
                temp_adr +=  c ;
            }
            if (current_adr == 0)
            {
                current_adr = temp_adr ;
            }
            else
            {
                /* PAD */
                if (temp_adr > current_adr)
                {
                    len = temp_adr - current_adr ;   
                    c = 0xff ;
                    for(i=0;i<len;i++)
                    {
                        putc(c,destination) ;
                    }
                    current_adr = temp_adr ;
                }
                else
                {
                    fclose(source);
                    fclose(destination);
                    return -1 ;
                }
            }
        }

        if ( isxdigit(line[0]) && len == 8 )
        {
            if (bendian)
	      {
		for(i=0;i<4;i++)
		  {
		    if ( ( (char2bin[(line[i*2])])     != -1 ) &&
			 ( (char2bin[(line[(i*2)+1])]) != -1 ) )
		      {
			c = ( (char2bin[(line[i*2])] << 4) |
			      (char2bin[(line[(i*2)+1])])  ) ;
			putc(c,destination) ;
		      }
		  }
	      }
	    else
	      {
		for(i=3;i>=0;i--)
		  {
		    if ( ( (char2bin[(line[i*2])])     != -1 ) &&
			 ( (char2bin[(line[(i*2)+1])]) != -1 ) )
		      {
			c = ( (char2bin[(line[i*2])] << 4) |
			      (char2bin[(line[(i*2)+1])])  ) ;
			putc(c,destination) ;
		      }
		  }
	      }
            current_adr = current_adr + 4 ;
        }
    }

    fclose(source);
    fclose(destination);

    return EXIT_SUCCESS;
}


/************************************************************************
 *  Implementation : Static functions
 ************************************************************************/


/************************************************************************
 *                          getline
 ************************************************************************/
static int 
getline( FILE *f, char line[], unsigned long *len )
{
    int i ;

    i = 0 ;
    while ( 1 )
    {
        line[i] =  getc(f);
        if ( line[i] == EOF  )
        {
            *len = i ;
            return(0) ;
        }

        if ( ( line[i] == '\r' ) ||
             ( line[i] == '\n' )    )
        {
            *len = i ;
            return(1) ;
        }
        i++ ;
    }
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人高清电影在线| 欧美电影免费观看完整版| 日韩av电影一区| 欧美激情艳妇裸体舞| 日本精品视频一区二区三区| 日日摸夜夜添夜夜添精品视频| 国产女人aaa级久久久级 | 91麻豆精品国产91久久久久| 欧美va亚洲va香蕉在线| 国产精品自拍三区| 亚洲丶国产丶欧美一区二区三区| 欧美精品一区二区三区很污很色的 | 欧美精品一区二区在线观看| 在线免费观看不卡av| 国产激情精品久久久第一区二区 | 久久久精品天堂| 欧美色精品在线视频| 成人激情动漫在线观看| 久久99热99| 天堂成人国产精品一区| 亚洲另类在线视频| 国产精品美女久久久久久| 日韩精品资源二区在线| 欧美日韩国产精品成人| 一本色道a无线码一区v| 成人精品国产福利| 国产激情91久久精品导航| 美女视频黄 久久| 天天色天天操综合| 亚洲女同女同女同女同女同69| 国产三级精品三级在线专区| 日韩免费一区二区三区在线播放| 欧美视频中文一区二区三区在线观看 | 国产无人区一区二区三区| 欧美成人video| 日韩欧美电影在线| 欧美一区二区三区免费观看视频| 欧美在线看片a免费观看| 色www精品视频在线观看| aaa亚洲精品| 99免费精品视频| 成人黄色777网| 成人蜜臀av电影| 高清国产一区二区| 成人永久aaa| 成人高清免费观看| 波多野结衣亚洲| 成人18精品视频| 99久久99久久综合| 色综合久久综合| 在线影院国内精品| 欧美日韩免费视频| 欧美日韩在线观看一区二区| 欧美性受xxxx| 欧美日韩五月天| 日韩片之四级片| 精品对白一区国产伦| 国产三级精品在线| 亚洲天堂福利av| 亚洲国产成人91porn| 日韩精品久久理论片| 免费在线欧美视频| 国产一区美女在线| 成人动漫av在线| 91小宝寻花一区二区三区| 欧美自拍偷拍一区| 5858s免费视频成人| 日韩精品在线看片z| 久久久精品蜜桃| 亚洲视频狠狠干| 亚洲国产精品久久人人爱 | 亚洲成av人片一区二区| 日韩国产欧美在线视频| 国产在线视频一区二区三区| 粉嫩13p一区二区三区| 91免费观看国产| 8x8x8国产精品| 久久午夜国产精品| 国产精品久久久久婷婷二区次| 亚洲精选免费视频| 麻豆91在线看| 成人av动漫在线| 7777精品伊人久久久大香线蕉的| 精品久久久久一区二区国产| 国产精品成人免费| 日日骚欧美日韩| 99视频精品在线| 91精品婷婷国产综合久久性色 | 玖玖九九国产精品| www.综合网.com| 91精品在线观看入口| 国产精品欧美综合在线| 亚洲成av人影院| 丁香一区二区三区| 91麻豆精品国产无毒不卡在线观看 | 黄色成人免费在线| 欧美中文一区二区三区| 久久久久久久久久久99999| 亚洲蜜臀av乱码久久精品蜜桃| 麻豆精品久久精品色综合| proumb性欧美在线观看| 日韩欧美国产一区二区三区 | 欧美性一级生活| 久久精品视频在线看| 亚洲第一二三四区| 91丨porny丨在线| 欧美精品一区二区三区蜜桃视频| 亚洲成人三级小说| jvid福利写真一区二区三区| 日韩精品综合一本久道在线视频| 一区二区三区四区乱视频| 国产成人综合网站| 日韩你懂的在线播放| 性久久久久久久久久久久| 成a人片国产精品| 欧美精品一区二区在线观看| 日本亚洲一区二区| 欧洲一区二区三区在线| 国产精品免费人成网站| 国内成人自拍视频| 精品久久久三级丝袜| 日本不卡123| 欧美性生活大片视频| 亚洲激情自拍视频| www.日韩在线| 国产精品动漫网站| 成人avav影音| 欧美国产精品一区| 国产一区二区在线免费观看| 欧美一区二区性放荡片| 亚洲成人tv网| 欧美日韩一区二区在线视频| 亚洲欧美激情视频在线观看一区二区三区 | 91在线观看美女| 国产精品不卡在线| 粉嫩嫩av羞羞动漫久久久| 久久亚洲捆绑美女| 国产在线视频不卡二| 欧美精品一区二区三区蜜臀 | 久久福利视频一区二区| 欧美一区二区三区免费观看视频| 日韩国产精品久久久| 日韩一区二区三区免费看| 免费看欧美美女黄的网站| 欧美一区二区三区电影| 麻豆91在线观看| 26uuu成人网一区二区三区| 国产酒店精品激情| 国产女人18水真多18精品一级做| 国产高清成人在线| 亚洲视频你懂的| 在线视频一区二区三区| 亚洲无人区一区| 91精品国产高清一区二区三区蜜臀| 免费视频最近日韩| 久久久久一区二区三区四区| 国产主播一区二区| 日韩理论片在线| 欧美日韩日日摸| 精品写真视频在线观看| 久久久久久久久伊人| 91小视频在线免费看| 亚洲福利一二三区| 日韩视频免费观看高清完整版| 狠狠v欧美v日韩v亚洲ⅴ| 中文字幕精品—区二区四季| 色天天综合久久久久综合片| 亚洲第一会所有码转帖| 精品日本一线二线三线不卡| 高清在线成人网| 亚洲国产成人高清精品| 精品蜜桃在线看| 成人av影院在线| 午夜精彩视频在线观看不卡| 精品国产91亚洲一区二区三区婷婷 | 精品国产欧美一区二区| 成人在线视频一区| 午夜精品爽啪视频| 久久视频一区二区| 一本大道久久a久久综合| 秋霞电影网一区二区| 欧美激情一区二区三区在线| 欧洲亚洲精品在线| 国产一区二区三区国产| 亚洲精品高清在线| 26uuu精品一区二区在线观看| 色综合天天天天做夜夜夜夜做| 麻豆精品视频在线观看免费| 亚洲色图欧美在线| 精品国产青草久久久久福利| 91浏览器入口在线观看| 久久精品免费观看| 中文字幕在线一区| 日韩一级免费一区| 色综合久久久久久久久久久| 精品一区二区三区日韩| 亚洲午夜一区二区三区| 国产欧美1区2区3区| 日韩欧美电影一区| 欧美色图激情小说|