mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-30 15:30:08 +00:00
Opcode dump with the proper size
This commit is contained in:
parent
fb29ae8ee7
commit
38a187ee5b
@ -77,7 +77,7 @@ func (s *State) ExecuteInstruction() {
|
|||||||
opcode.action(s, s.lineCache, opcode)
|
opcode.action(s, s.lineCache, opcode)
|
||||||
s.cycles += uint64(opcode.cycles)
|
s.cycles += uint64(opcode.cycles)
|
||||||
if s.trace {
|
if s.trace {
|
||||||
fmt.Printf("%v, [%02x]\n", s.reg, s.lineCache)
|
fmt.Printf("%v, [%02x]\n", s.reg, s.lineCache[0:opcode.bytes])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user