added -esa option to override the evalstack location, and shift cx16.r0-r15 accordingly

This commit is contained in:
Irmen de Jong
2022-07-11 18:36:20 +02:00
parent 68da661edc
commit 6181b12ab8
21 changed files with 99 additions and 18 deletions
@@ -60,6 +60,8 @@ class CodeGen(internal val program: PtProgram,
if(options.symbolDefs.isNotEmpty())
throw AssemblyError("virtual target doesn't support symbols defined on the commandline")
if(options.evalStackBaseAddress!=null)
throw AssemblyError("virtual target doesn't use eval-stack")
for (block in program.allBlocks()) {
vmprog.addBlock(translate(block))