make %memtop exclusive i.e. the first address NOT to use (like kernal MEMTOP)

This commit is contained in:
Irmen de Jong
2024-11-10 23:35:25 +01:00
parent 4bdabe1961
commit 1b528491c2
13 changed files with 28 additions and 13 deletions

View File

@@ -287,7 +287,7 @@ internal class ProgramAndVarsGen(
}
}
asmgen.out(" ; memtop check")
asmgen.out(" .cerror * > ${options.memtopAddress.toHex()}, \"Program too long by \", * - ${options.memtopAddress.toHex()}, \" bytes, memtop=${options.memtopAddress.toHex()}\"")
asmgen.out(" .cerror * >= ${options.memtopAddress.toHex()}, \"Program too long by \", * - ${(options.memtopAddress-1u).toHex()}, \" bytes, memtop=${options.memtopAddress.toHex()}\"")
}
private fun block2asm(block: PtBlock) {