1
0
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:
Sam M W 2023-04-15 21:47:17 +01:00
parent f0fc9829db
commit bd1ab13dc1

View File

@ -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),