mirror of
https://github.com/KarolS/millfork.git
synced 2024-11-01 05:05:32 +00:00
6809: Fix -=
This commit is contained in:
parent
b0577270d5
commit
4e19b1ba34
@ -27,7 +27,7 @@ object M6809Buitins {
|
|||||||
lc ++ List(ldr.copy(opcode = opcode), lc.last.copy(opcode = STB))
|
lc ++ List(ldr.copy(opcode = opcode), lc.last.copy(opcode = STB))
|
||||||
case _ if lc.last.opcode == LDB =>
|
case _ if lc.last.opcode == LDB =>
|
||||||
// TODO: preserve X?
|
// TODO: preserve X?
|
||||||
lc ++ List(MLine.pp(PSHS, M6809Register.B)) ++ rc ++ List(MLine.accessAndPullS(opcode), lc.last.copy(opcode = STB))
|
rc ++ List(MLine.pp(PSHS, M6809Register.B)) ++ lc ++ List(MLine.accessAndPullS(opcode), lc.last.copy(opcode = STB))
|
||||||
case _ =>
|
case _ =>
|
||||||
println(lc)
|
println(lc)
|
||||||
???
|
???
|
||||||
|
@ -10,7 +10,7 @@ import org.scalatest.{AppendedClues, FunSuite, Matchers}
|
|||||||
class ByteMathSuite extends FunSuite with Matchers with AppendedClues {
|
class ByteMathSuite extends FunSuite with Matchers with AppendedClues {
|
||||||
|
|
||||||
test("Complex expression") {
|
test("Complex expression") {
|
||||||
EmuCrossPlatformBenchmarkRun(Cpu.Mos, Cpu.Z80, Cpu.Intel8080, Cpu.Sharp, Cpu.Intel8086)(
|
EmuCrossPlatformBenchmarkRun(Cpu.Mos, Cpu.Z80, Cpu.Intel8080, Cpu.Sharp, Cpu.Intel8086, Cpu.Motorola6809)(
|
||||||
"""
|
"""
|
||||||
| byte output @$c000
|
| byte output @$c000
|
||||||
| void main () {
|
| void main () {
|
||||||
|
Loading…
Reference in New Issue
Block a user