D 2015-10-09T10:09:24.036 L Generating\stest\sdata P a7c8def3facd816f700d28c327bb2e82163fca8f U jos W 1653
--------------------------------------------- -- All bytes from 0x00 .. 0xff require('ihex'); local data = {}; for i=0,255 do table.insert(data,i) end ihex_reset() for i=0,7 do ihex_datarecord(data,32,(i*32+1) ); end ihex_endrecord(); -- EOF -- ---------------------------------------------A somewhat more complicated example...
--------------------------------------------- -- All 2-byte combinations starting from d8 00; d8 01; ... -- up to (and including) ... df fe; df ff; -- (To test disassembly of the bitwise shift/rotate/change/test operations) require('ihex'); local data = {}; for instr = 0xd8,0xdf do for postb = 0x00,0xff do table.insert(data,instr); table.insert(data,postb); end end ihex_reset(); for i=0,15 do for j=0,15 do ihex_datarecord(data,16,i*256+j*16+1); end end ihex_endrecord(); -- EOF -- ---------------------------------------------