Skip to content

Commit

Permalink
Fixes dcpu16 ...
Browse files Browse the repository at this point in the history
Files
 - dcpu16
 - debugger.rb
  • Loading branch information
Deradon committed Apr 11, 2012
1 parent 004cd8a commit cb67a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/dcpu16
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ if ARGV.length == 1
assembler.write(tmp_file.path)
dump = tmp_file.read.unpack("S>*")
end
debugger = DCPU16::Debugger.new(dump, :update_every => 10000)

# TODO: get args from command line
debugger = DCPU16::Debugger.new(dump, :update_every => 10000, :step_mode => false)
debugger.run
elsif ARGV.length == 2
file = File.open(ARGV[0])
Expand Down
2 changes: 1 addition & 1 deletion lib/dcpu16/debugger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def initialize(dump = [], options = {})
@cpu = DCPU16::CPU.new(dump)
@screen = DCPU16::Screen.new(@cpu.memory)
@update_every = options[:update_every] || 100000
@step_mode = true#false || options[:step_mode]
@step_mode = false || options[:step_mode]

@cpu.add_observer(self)
end
Expand Down

0 comments on commit cb67a78

Please sign in to comment.