2 -- usage: lua xd.lua < file
7 if s==nil then return end
8 io.write(string.format("%08X ",offset))
10 function (c) io.write(string.format("%02X ",string.byte(c))) end)
11 io.write(string.rep(" ",3*(16-string.len(s))))
12 io.write(" ",string.gsub(s,"%c","."),"\n")