hextape

所属分类:论文
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2021-03-05 11:58:30
上 传 者sh-1993
说明:  从EPROM编程、纸带等中使用的各种ASCII十六进制记录格式转换为,
(Converts to from various ASCII hex record formats used in EPROM programming, paper tapes etc,)

文件列表:
LICENSE (1068, 2021-03-05)
examples.js (1589, 2021-03-05)
index.js (495, 2021-03-05)
intel.js (5043, 2021-03-05)
motorola.js (7083, 2021-03-05)
package-lock.json (7676, 2021-03-05)
package.json (867, 2021-03-05)
signetics.js (4581, 2021-03-05)

hextape ======= Converts to/from various ASCII hex record formats used in EPROM programming, paper tapes etc * `hextape` * `intel` - Intel hex format * `buildRecord(type, addr, buf)` * `parseRecord(record)` * `new HexStream(header, base, exec, reclen)` * `motorola` - Motorola S-records * `buildRecord(type, addr, buf)` * `parseRecord(record)` * `new HexStream(header, base, exec, reclen)` * `signetics` - Signetics absolute object format * `buildRecord(type, addr, buf)` * `parseRecord(record)` * `new HexStream(header, base, exec, reclen)` Usage ----- See also `examples.js`. JSDoc comments are available in the source code. ```javascript const fs = require('fs'); const hextape = require('hextape'); console.log(hextape.motorola.buildRecord( 1, // Record type 0x0038, // Address Buffer.from([ // Data 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x2E, 0x0A, 0x00, ]) )); console.log(hextape.motorola.parseRecord( 'S111003848656C6C6F20776F726C642E0A0042' )); fs.createReadStream('LICENSE') .pipe(new hextape.motorola.HexStream('LICENSE')) .pipe(process.stdout); ``` ``` S111003848656C6C6F20776F726C642E0A0042 { type: 1, addr: 56, buf: } ... ``` License ------- MIT license, copyright (c) 2021 David Knoll

近期下载者

相关文件


收藏者