mirror of
https://github.com/mattrberry/crab.git
synced 2024-11-16 19:49:30 +01:00
each_with_address -> each_with_index (fix bad refactor)
This commit is contained in:
parent
120abb5261
commit
591c8b41c3
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ module GBA
|
|||
end
|
||||
|
||||
def print_state(instr : UInt32? = nil) : Nil
|
||||
@r.each_with_address do |val, reg|
|
||||
@r.each_with_index do |val, reg|
|
||||
print "#{hex_str reg == 15 ? val - (@cpsr.thumb ? 2 : 4) : val, prefix: false} "
|
||||
end
|
||||
instr ||= @pipeline.peek
|
||||
|
|
Loading…
Reference in a new issue