From 54fc9c91ac5b1b71274f05e54722b1678c378a0c Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 5 Jan 2021 03:48:36 +0100 Subject: [PATCH] fix hole in scratch zp allocation of cx16 --- .../src/prog8/compiler/target/cx16/CX16MachineDefinition.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/prog8/compiler/target/cx16/CX16MachineDefinition.kt b/compiler/src/prog8/compiler/target/cx16/CX16MachineDefinition.kt index 1828d5865..c1d92da94 100644 --- a/compiler/src/prog8/compiler/target/cx16/CX16MachineDefinition.kt +++ b/compiler/src/prog8/compiler/target/cx16/CX16MachineDefinition.kt @@ -71,8 +71,8 @@ internal object CX16MachineDefinition: IMachineDefinition { internal class CX16Zeropage(options: CompilationOptions) : Zeropage(options) { - override val SCRATCH_B1 = 0x79 // temp storage for a single byte - override val SCRATCH_REG = 0x7a // temp storage for a register, must be B1+1 + override val SCRATCH_B1 = 0x7a // temp storage for a single byte + override val SCRATCH_REG = 0x7b // temp storage for a register, must be B1+1 override val SCRATCH_W1 = 0x7c // temp storage 1 for a word $7c+$7d override val SCRATCH_W2 = 0x7e // temp storage 2 for a word $7e+$7f