From 246a8db9ac481755a169822484dfd174d0e63a1e Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Fri, 8 Jan 2010 23:09:02 +0000 Subject: [PATCH] Some optimization. git-svn-id: svn://svn.cc65.org/cc65/trunk@4546 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/apple2/apple2-40-48-16.s | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libsrc/apple2/apple2-40-48-16.s b/libsrc/apple2/apple2-40-48-16.s index b3d319861..477e24a53 100644 --- a/libsrc/apple2/apple2-40-48-16.s +++ b/libsrc/apple2/apple2-40-48-16.s @@ -567,16 +567,16 @@ next: sta ERR ; Must set an error code: NO BAR: bit $C082 ; Switch in ROM + lda X2 + sta H2 inc Y2 - ldx X2 - stx H2 -: ldy X1 - lda Y1 - jsr HLINE - inc Y1 - lda Y2 - cmp Y1 - bne :- + ldx Y1 +: txa + ldy X1 + jsr HLINE ; Preserves X + inx + cpx Y2 + bcc :- bit $C080 ; Switch in LC bank 2 for R/O rts -- 2.39.5