Skip to content

Commit

Permalink
Update lib/dcpu16/cpu.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Deradon committed Oct 14, 2012
1 parent 8ce2870 commit 78099d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dcpu16/cpu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def initialize(memory = [])
@cycle = 0
@memory = DCPU16::Memory.new(memory)
@registers = []
[:A, :B, :C, :X, :Y, :Z, :I, :J].each { |r| @registers << Register.new(0x0, r) }
REGISTERS.each { |r| @registers << Register.new(0x0, r) }

@PC = Register.new(0x0)
@SP = Register.new(0xFFFF)
Expand Down

0 comments on commit 78099d2

Please sign in to comment.