c1 correction

This commit is contained in:
Mark Canlas 2020-08-12 22:08:51 -04:00
parent 972fa77d10
commit 22e8d615ab

View File

@ -252,8 +252,14 @@ object MatchOpcodes {
val addressingMode =
Seq(IndirectX, ZeroPage, Immediate, Absolute, IndirectY, ZeroPageX, AbsoluteY, AbsoluteX)(bbb)
(instruction, addressingMode) match {
case (STA, Immediate) =>
None
case _ =>
(instruction -> addressingMode).some
}
}
def c10(aaa: Int, bbb: Int): Option[(Instruction, AddressingMode)] = {
val instruction =