Permalink
Browse files

rcpu-bin: Dump the memory on interrupt too

  • Loading branch information...
1 parent c8d2cd6 commit fd301caff994675f93113c3be11aa3adbb1cd3be @judofyr committed Apr 9, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/rcpu-bin
View
@@ -12,7 +12,9 @@ data = File.open(ARGV.shift, 'rb') { |f| f.read }.unpack('v*')
emu = RCPU::Emulator.new(data)
emu.memory.add_extensions([[0x8000, RCPU::ScreenExtension, [], nil]])
emu.start
+at_exit do
+ emu.stop
+ emu.dump
+end
emu.run
-emu.stop
-emu.dump

0 comments on commit fd301ca

Please sign in to comment.