added memtop to machine definition and asm source code check

added %memtop directive
This commit is contained in:
Irmen de Jong
2024-11-02 00:13:23 +01:00
parent 6fb05bdefc
commit 3b798097b9
31 changed files with 92 additions and 45 deletions

View File

@@ -22,7 +22,8 @@ class TestIRPeepholeOpt: FunSpec({
floats = false,
noSysInit = true,
compTarget = target,
loadAddress = target.machine.PROGRAM_LOAD_ADDRESS
loadAddress = target.machine.PROGRAM_LOAD_ADDRESS,
memtopAddress = 0xffffu
)
val prog = IRProgram("test", IRSymbolTable(), options, target)
prog.addBlock(block)

View File

@@ -23,7 +23,8 @@ class TestVmCodeGen: FunSpec({
floats = true,
noSysInit = false,
compTarget = target,
loadAddress = target.machine.PROGRAM_LOAD_ADDRESS
loadAddress = target.machine.PROGRAM_LOAD_ADDRESS,
memtopAddress = 0xffffu
)
}