in a block marked option force_output, make all subroutines in asm use .block rather than .proc

this fixes some obscure assembly issues where subroutines were omitted from the output program by 64tass
This commit is contained in:
Irmen de Jong
2022-08-10 21:28:40 +02:00
parent 68abda1219
commit 2d34fdd28f
4 changed files with 38 additions and 13 deletions
@@ -856,7 +856,7 @@ internal class ExpressionGen(private val codeGen: CodeGen) {
return code
}
is StRomSub -> {
TODO("call romsub $fcall")
throw AssemblyError("virtual machine doesn't yet support calling romsub $fcall")
}
else -> throw AssemblyError("invalid node type")
}