1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-01 05:05:32 +00:00

6809: Improve parameter passing for assembly subroutines

This commit is contained in:
Karol Stasiak 2020-07-31 01:56:03 +02:00
parent d7f2b0688f
commit f0b083abea

View File

@ -563,7 +563,9 @@ object M6809ExpressionCompiler extends AbstractExpressionCompiler[MLine] {
case M6809RegisterVariable(M6809Register.U, _) => compileToU(ctx, e) case M6809RegisterVariable(M6809Register.U, _) => compileToU(ctx, e)
case _ => ??? case _ => ???
} }
if (compiled.length > 1) ??? if (compiled.length > 1 && params.length > 1) {
ctx.log.error("Too complex parameter for an assembly routine call", e.position)
}
compiled compiled
} }
case _ => ??? case _ => ???