on the C64, if not using floats, disable basic ROM in startup to gain another 8Kb of RAM

MEMTOP is adjusted to $d000. This gives us 50 Kb of contiguous program RAM space. ($0801-$CFFF)
This commit is contained in:
Irmen de Jong
2024-11-04 21:24:53 +01:00
parent e514eeba17
commit fddd390d31
13 changed files with 259 additions and 228 deletions
@@ -15,7 +15,8 @@ class C64MachineDefinition: IMachineDefinition {
override val FLOAT_MAX_NEGATIVE = Mflpt5.FLOAT_MAX_NEGATIVE
override val FLOAT_MEM_SIZE = Mflpt5.FLOAT_MEM_SIZE
override val PROGRAM_LOAD_ADDRESS = 0x0801u
override val PROGRAM_TOP_ADDRESS = 0x9fffu // $bfff if basic rom is banked out
override val PROGRAM_TOP_ADDRESS = 0xcfe0u // $9fff if floats are used
// note that at $cfe0-$cfff are the 16 'virtual registers' R0-R15
override val BSSHIGHRAM_START = 0xc000u
override val BSSHIGHRAM_END = 0xcfffu