From 6b1d62a2819395091ca9f342ded9b929940263fe Mon Sep 17 00:00:00 2001 From: izydorst Date: Fri, 20 Dec 2002 23:04:00 +0000 Subject: [PATCH] some bytes saved git-svn-id: svn://svn.cc65.org/cc65/trunk@1805 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/c128-vdc.s | 14 +++----------- libsrc/c64/c64-vdc.s | 14 +++----------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/libsrc/c128/c128-vdc.s b/libsrc/c128/c128-vdc.s index 3e324e5d9..49badc3d1 100644 --- a/libsrc/c128/c128-vdc.s +++ b/libsrc/c128/c128-vdc.s @@ -273,11 +273,7 @@ COPYFROM: ; Transfer the bytes in the last page ldy #0 - ldx #VDC_DATA - stx VDC_ADDR_REG -@L3: bit VDC_ADDR_REG - bpl @L3 - lda VDC_DATA_REG +@L3: jsr vdcgetbyte sta (ptr2),y iny dec tmp1 @@ -313,12 +309,8 @@ COPYTO: ; Transfer the bytes in the last page ldy #0 - ldx #VDC_DATA - stx VDC_ADDR_REG -@L3: bit VDC_ADDR_REG - bpl @L3 - lda (ptr2),y - sta VDC_DATA_REG +@L3: lda (ptr2),y + jsr vdcputbyte iny dec tmp1 lda tmp1 diff --git a/libsrc/c64/c64-vdc.s b/libsrc/c64/c64-vdc.s index 3e324e5d9..49badc3d1 100644 --- a/libsrc/c64/c64-vdc.s +++ b/libsrc/c64/c64-vdc.s @@ -273,11 +273,7 @@ COPYFROM: ; Transfer the bytes in the last page ldy #0 - ldx #VDC_DATA - stx VDC_ADDR_REG -@L3: bit VDC_ADDR_REG - bpl @L3 - lda VDC_DATA_REG +@L3: jsr vdcgetbyte sta (ptr2),y iny dec tmp1 @@ -313,12 +309,8 @@ COPYTO: ; Transfer the bytes in the last page ldy #0 - ldx #VDC_DATA - stx VDC_ADDR_REG -@L3: bit VDC_ADDR_REG - bpl @L3 - lda (ptr2),y - sta VDC_DATA_REG +@L3: lda (ptr2),y + jsr vdcputbyte iny dec tmp1 lda tmp1 -- 2.39.5