1
0
mirror of https://github.com/mre/mos6502.git synced 2024-06-03 12:29:48 +00:00

Add the Revision A variant, one that has no ROR

This commit is contained in:
Sam M W 2023-08-27 21:49:48 +01:00
parent bfa604aef4
commit fb53ae486a

View File

@ -418,3 +418,17 @@ impl crate::Variant for Nmos6502 {
}
}
}
pub struct RevisionA;
impl crate::Variant for RevisionA {
fn decode(opcode: u8) -> Option<(Instruction, AddressingMode)> {
match opcode {
0x66 => None,
0x6a => None,
0x6e => None,
0x76 => None,
0x7e => None,
_ => Nmos6502::decode(opcode),
}
}
}