From 33d67ec9322c3cfdbdb3ee3dc3ee6d950dcf3f2e Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Fri, 31 Jul 2020 13:25:42 +0200 Subject: [PATCH] 6809: Correctly assemble STS and STY --- src/main/scala/millfork/assembly/m6809/MOpcode.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/millfork/assembly/m6809/MOpcode.scala b/src/main/scala/millfork/assembly/m6809/MOpcode.scala index bbc2a5d1..1d746c65 100644 --- a/src/main/scala/millfork/assembly/m6809/MOpcode.scala +++ b/src/main/scala/millfork/assembly/m6809/MOpcode.scala @@ -37,7 +37,7 @@ object MOpcode extends Enumeration { values.filterNot(notActualOpcodes).map(o => o.toString -> o).toMap ++ Map("BHS" -> BCC, "BLO" -> BCS, "LSL" -> ASL) } val NoopDiscard: Set[MOpcode.Value] = Set(DISCARD_D, DISCARD_X, DISCARD_Y, DISCARD_CC) - val PrefixedBy10: Set[MOpcode.Value] = Set(CMPD, CMPY, LDS, LDY, SWI2) // TODO: branches + val PrefixedBy10: Set[MOpcode.Value] = Set(CMPD, CMPY, LDS, LDY, SWI2, STS, STY) // TODO: branches val PrefixedBy11: Set[MOpcode.Value] = Set(CMPS, CMPU, SWI3) val Prefixed: Set[MOpcode.Value] = PrefixedBy10 ++ PrefixedBy11 val CanHaveInherentAccumulator: Set[MOpcode.Value] = Set(ASL, ASR, CLR, COM, DEC, INC, LSR, NEG, ROL, ROR, TST)