mirror of
https://github.com/mre/mos6502.git
synced 2024-11-28 07:49:19 +00:00
point INY instruction at the correct register
This commit is contained in:
parent
f0fc9829db
commit
bd1ab13dc1
@ -358,7 +358,7 @@ impl<M: Bus> CPU<M> {
|
||||
CPU::<M>::increment(&mut self.registers.index_x, &mut self.registers.status);
|
||||
}
|
||||
(Instruction::INY, OpInput::UseImplied) => {
|
||||
CPU::<M>::increment(&mut self.registers.index_x, &mut self.registers.status);
|
||||
CPU::<M>::increment(&mut self.registers.index_y, &mut self.registers.status);
|
||||
}
|
||||
|
||||
(Instruction::JMP, OpInput::UseAddress(addr)) => self.jump(addr),
|
||||
|
Loading…
Reference in New Issue
Block a user