Skip to content

Commit 22af491

Browse files
committed
Simplify variable name copy.
1 parent 7fafef6 commit 22af491

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/vars.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,18 @@ exit_2:
221221
lda #0
222222
sta (var), y
223223

224-
; Copy name of var/label
224+
; Copy name of var/label, last byte with high bit set
225225
dey
226-
lda (name),y
227-
eor #$80
226+
lda #$80
228227
loop:
228+
ora (name),y
229229
sta (var),y
230+
lda #0
230231
dey
231-
bmi end
232-
lda (name),y
233232
bpl loop
234233

235234
end: rts
236235
.endproc
237236

238237
; vi:syntax=asm_ca65
238+
;

0 commit comments

Comments
 (0)