mirror of
https://github.com/mre/mos6502.git
synced 2024-06-02 20:41:33 +00:00
Add the Revision A variant, one that has no ROR
This commit is contained in:
parent
bfa604aef4
commit
fb53ae486a
|
@ -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),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user