isolated injected opcodes

This commit is contained in:
Mark Canlas
2018-05-08 22:05:40 -04:00
parent 66e41e42fc
commit 7e9f6b8070

View File

@@ -15,8 +15,7 @@ object MatchOpcodes {
.collect { case (n, Some(x)) => (n, x) }
.toMap
def doStuff(out: PrintWriter): Unit = {
val injected =
def injectedOpcodes: Map[Int, (Instruction, AddressingMode)] =
Map(
0x10 -> BPL,
0x30 -> BMI,
@@ -58,7 +57,8 @@ object MatchOpcodes {
0xEA -> NOP
).mapValues(x => x -> Implied)
val lookup = generatedOpcodes ++ injected
def doStuff(out: PrintWriter): Unit = {
val lookup = generatedOpcodes ++ injectedOpcodes
out.print("<table>")