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:
parent
d7f2b0688f
commit
f0b083abea
@ -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 _ => ???
|
||||||
|
Loading…
Reference in New Issue
Block a user