• 大小: 152KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: 其他
  • 标签: hex    bin  

资源简介

HEX转BIN工具 WIN 7 64位系统可用。 Hex2bin Intel Hex or Motorola Hex file converter Converts Motorola and Intel hex files to binary. Executables for window

资源截图

代码片段和文件信息

/*---------------------------------------------------------------------------*
 * binary.c                                                                  *
 * Copyright (C) 2014  Jacques Pelletier                                     *
 *                                                                           *
 * This program is free software; you can redistribute it and *or            *
 * modify it under the terms of the GNU General Public License               *
 * as published by the Free Software Foundation; either version 2            *
 * of the License or (at your option) any later version.                    *
 *                                                                           *
 * This program is distributed in the hope that it will be useful           *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 * GNU General Public License for more details.                              *
 *                                                                           *
 * You should have received a copy of the GNU General Public License         *
 * along with this program; if not write to the Free Software Foundation   *
 * Inc. 59 Temple Place - Suite 330 Boston MA  02111-1307 USA.           *
 *---------------------------------------------------------------------------*/

#include 

#include “binary.h“

const uint8_t Reflect8[256] = {
  0x000x800x400xC00x200xA00x600xE00x100x900x500xD00x300xB00x700xF0
  0x080x880x480xC80x280xA80x680xE80x180x980x580xD80x380xB80x780xF8
  0x040x840x440xC40x240xA40x640xE40x140x940x540xD40x340xB40x740xF4
  0x0C0x8C0x4C0xCC0x2C0xAC0x6C0xEC0x1C0x9C0x5C0xDC0x3C0xBC0x7C0xFC
  0x020x820x420xC20x220xA20x620xE20x120x920x520xD20x320xB20x720xF2
  0x0A0x8A0x4A0xCA0x2A0xAA0x6A0xEA0x1A0x9A0x5A0xDA0x3A0xBA0x7A0xFA
  0x060x860x460xC60x260xA60x660xE60x160x960x560xD60x360xB60x760xF6
  0x0E0x8E0x4E0xCE0x2E0xAE0x6E0xEE0x1E0x9E0x5E0xDE0x3E0xBE0x7E0xFE
  0x010x810x410xC10x210xA10x610xE10x110x910x510xD10x310xB10x710xF1
  0x090x890x490xC90x290xA90x690xE90x190x990x590xD90x390xB90x790xF9
  0x050x850x450xC50x250xA50x650xE50x150x950x550xD50x350xB50x750xF5
  0x0D0x8D0x4D0xCD0x2D0xAD0x6D0xED0x1D0x9D0x5D0xDD0x3D0xBD0x7D0xFD
  0x030x830x430xC30x230xA30x630xE30x130x930x530xD30x330xB30x730xF3
  0x0B0x8B0x4B0xCB0x2B0xAB0x6B0xEB0x1B0x9B0x5B0xDB0x3B0xBB0x7B0xFB
  0x070x870x470xC70x270xA70x670xE70x170x970x570xD70x370xB70x770xF7
  0x0F0x8F0x4F0xCF0x2F0xAF0x6F0xEF0x1F0x9F0x5F0xDF0x3F0xBF0x7F0xFF
};

uint16_t Reflect16(uint16_t Value16)
{
  return (((uint16_t) Reflect8[u16_lo(Value16)]) << 8) | ((uint16_t) Reflect8[u16_hi(Value16)]);
}

uint32_t Reflect24(uint32_t Val

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6031  2015-02-22 12:59  Hex2bin-2.0\binary.c

     文件        928  2015-02-23 04:31  Hex2bin-2.0\binary.h

     文件       4704  2015-03-01 05:43  Hex2bin-2.0\binary.o

     文件      15504  2015-03-01 05:54  Hex2bin-2.0\common.c

     文件       2800  2015-02-28 21:28  Hex2bin-2.0\common.h

     文件      19712  2015-03-01 06:02  Hex2bin-2.0\common.o

     文件       1984  2014-11-22 21:19  Hex2bin-2.0\doc\ChangeLog_hex2bin

     文件       1892  2014-11-22 21:20  Hex2bin-2.0\doc\ChangeLog_mot2bin

     文件       9005  2015-02-22 09:08  Hex2bin-2.0\doc\CRC list.txt

     文件       1405  1999-07-28 04:46  Hex2bin-2.0\doc\formats.txt

     文件      16660  1999-07-28 04:46  Hex2bin-2.0\doc\intelhex.spc

     文件       7097  2015-03-01 06:02  Hex2bin-2.0\doc\README

     文件      14580  1999-07-28 04:46  Hex2bin-2.0\doc\S-record.txt

     文件      18593  2015-01-24 13:17  Hex2bin-2.0\doc\srec.txt

     文件      18593  1999-07-28 04:46  Hex2bin-2.0\doc\srec.txt~

     文件      22792  2015-03-01 06:02  Hex2bin-2.0\hex2bin

     文件       9318  2015-03-01 05:30  Hex2bin-2.0\hex2bin.1

     文件      20711  2015-03-01 05:01  Hex2bin-2.0\hex2bin.c

     文件      15112  2015-03-01 05:43  Hex2bin-2.0\hex2bin.o

     文件       4827  2015-03-01 05:30  Hex2bin-2.0\hex2bin.pod

     文件       4771  2015-02-23 06:08  Hex2bin-2.0\libcrc.c

     文件       2331  2015-02-22 12:16  Hex2bin-2.0\libcrc.h

     文件       3120  2015-03-01 05:43  Hex2bin-2.0\libcrc.o

     文件        253  2015-02-22 13:10  Hex2bin-2.0\make.log

     文件       1142  2015-03-01 06:19  Hex2bin-2.0\Makefile

     文件      22792  2015-03-01 06:02  Hex2bin-2.0\mot2bin

     文件      17712  2015-03-01 05:19  Hex2bin-2.0\mot2bin.c

     文件      16288  2015-03-01 05:49  Hex2bin-2.0\mot2bin.o

     文件       3200  2015-02-28 22:36  Hex2bin-2.0\test\example..cmd

     文件       3456  2015-03-01 05:16  Hex2bin-2.0\test\example.bin

............此处省略111个文件信息

评论

共有 条评论