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
1 changed files with 14 additions and 0 deletions

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