README.md in z80_disassembler-0.3.4 vs README.md in z80_disassembler-0.3.5

- old
+ new

@@ -18,19 +18,23 @@ $ gem install z80_disassembler ## Usage -- prepare: parse.asm >> parse.C -```bash - sjasmplus parse.asm -``` +* Example: zxn.ru/disasm - DEMO button -- example: parse.C >> parse.C.txt and compare with parse.txt ```ruby z = Z80Disassembler::Disassembler.new(params[:file], 32768) -z.start # return [ [25114, "#621A", "LD IX,#6300", "DD 21 00 63", " ! c"], [...], ... ] -z.text # return " LD IX,link_1 ; #621A / 25114 ; DD 21 00 63 ; ! c ;\n" +text = z.start +z.file_size +z.org +file_name = 'tmp/disasm' +file = Tempfile.new(file_name) +file.write(text) +file.write(Z80Disassembler::Disassembler.compile_text(file_name)) +file.close +compiled = system "sjasmplus --nologo #{file.path} 2> #{file_name}.log" +logs = File.open("#{file_name}.log").read.split("\n") ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.