added -D command line option to define symbols in the assembly file

This commit is contained in:
Irmen de Jong
2022-07-06 23:40:36 +02:00
parent beea6bc794
commit b41779bd02
10 changed files with 48 additions and 3 deletions
@@ -58,6 +58,9 @@ class CodeGen(internal val program: PtProgram,
}
}
if(options.symbolDefs.isNotEmpty())
throw AssemblyError("virtual target doesn't support symbols defined on the commandline")
for (block in program.allBlocks()) {
vmprog.addBlock(translate(block))
}