diff --git a/src/main/scala/millfork/assembly/AssemblyLine.scala b/src/main/scala/millfork/assembly/AssemblyLine.scala index ad961a19..3e35a77c 100644 --- a/src/main/scala/millfork/assembly/AssemblyLine.scala +++ b/src/main/scala/millfork/assembly/AssemblyLine.scala @@ -391,7 +391,7 @@ object AssemblyLine { variable match { case v@MemoryVariable(_, _, VariableAllocationMethod.Zeropage) => List(AssemblyLine.zeropage(opcode, v.toAddress + offset)) - case v@RelativeVariable(_, _, _, true) => + case v@RelativeVariable(_, _, _, true, None) => List(AssemblyLine.zeropage(opcode, v.toAddress + offset)) case v: VariableInMemory => List(AssemblyLine.absolute(opcode, v.toAddress + offset)) case v: StackVariable =>