zoukankan      html  css  js  c++  java
  • unix2doc

    unix2doc
    perl
    -i -p -e 's/ / /' file sed -i -e 's/$/ /' file

    doc2unix
    tr -d '
    ' < file > file2
    perl -i -p -e 's/
    //' file
    sed -i -e 's/
    //' file

    packihx 应该是使用在unix平台, 我用packihx出来的结果就是 换行少了‘ ’ 末尾少了‘ ’
    于是用这个处理。


    Intel的hex文件

    1 each Line in an Intel HEX caontains one HEX record.
    一般用于transfer程序

    2 record format
    each record is made up of five fields that are arranged in the following format:
    :llaaaatt[dd...]cc

    ':' is the colon that starts every Intek HEX record.
    'll' is the record-length field that represents the number of data bytes(dd) in the record.
    'aaaa' is the address field that represents the starting address for subsequent data in the record.
    'tt' is the field that represents the HEX record type, which may be one of the following:
      00 -- data record
      01 -- end-of-file record
      02 -- extended segment address record
      04 -- extended linear address record
    'dd' is a data filed taht represents one byte of data.
    'cc' is the checksum field  taht represents the checksum of the record. the checksum is calculated by summing the values
    of all hexadecimal digit pairs in the record module 255 and taking the two's complement.(加,取反加1)


  • 相关阅读:
    Mybatis使用resultType实现一对一查询
    利用webSocket使网页和服务器通信
    hdu--1728--special bfs
    hdu--1429--状压bfs
    hdu--3006--不知为何wa
    hdu--3001--类似旅行商<tsp>
    hdu--2660--二维费用背包
    hdu--4632--dp
    hdu--4497--数论
    hdu--4496--并查集
  • 原文地址:https://www.cnblogs.com/kwingmei/p/3279509.html
Copyright © 2011-2022 走看看