mirror of
https://github.com/KarolS/millfork.git
synced 2025-04-05 13:37:25 +00:00
Allocators should allocate even the last byte in the segment
This commit is contained in:
parent
0be52821d9
commit
32df01be76
@ -204,11 +204,11 @@ object Platform {
|
||||
l
|
||||
}
|
||||
|
||||
val codeAllocators = banks.map(b => b -> new UpwardByteAllocator(bankStarts(b), bankCodeEnds(b)))
|
||||
val codeAllocators = banks.map(b => b -> new UpwardByteAllocator(bankStarts(b), bankCodeEnds(b) + 1))
|
||||
val variableAllocators = banks.map(b => b -> new VariableAllocator(
|
||||
if (b == "default" && CpuFamily.forType(cpu) == CpuFamily.M6502) freeZpBytes else Nil, bankDataStarts(b) match {
|
||||
case None => new AfterCodeByteAllocator(bankStarts(b), bankEnds(b))
|
||||
case Some(start) => new UpwardByteAllocator(start, bankEnds(b))
|
||||
case None => new AfterCodeByteAllocator(bankStarts(b), bankEnds(b) + 1)
|
||||
case Some(start) => new UpwardByteAllocator(start, bankEnds(b) + 1)
|
||||
}))
|
||||
|
||||
val os = conf.getSection("output")
|
||||
|
Loading…
x
Reference in New Issue
Block a user