From f708a05d614945d1b60a3151e072234bc9a02484 Mon Sep 17 00:00:00 2001 From: cpg Date: Wed, 6 Nov 2002 23:02:48 +0000 Subject: [PATCH] use always a sector size of 128 for sectors 1 to 3, ignore sst_sectsize git-svn-id: svn://svn.cc65.org/cc65/trunk@1495 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/siocall.s | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libsrc/atari/siocall.s b/libsrc/atari/siocall.s index d0d1b132c..da8a62656 100644 --- a/libsrc/atari/siocall.s +++ b/libsrc/atari/siocall.s @@ -48,14 +48,26 @@ adc #1 sta DUNIT ; unit number (d1,d2,d3,...) - ldy #sst_sectsize + lda DAUX2 ; high byte sector # + bne _realsz + lda DAUX1 + cmp #4 ; sectors 1 to 3 are special (always 128 bytes) + bcs _realsz + + lda #$80 + sta DBYTLO + asl a + sta DBYTHI + beq _cont + +_realsz:ldy #sst_sectsize lda (ptr1),y sta DBYTLO iny lda (ptr1),y sta DBYTHI - lda #DISKID ; SIO bus ID of diskette drive +_cont: lda #DISKID ; SIO bus ID of diskette drive sta DDEVIC lda #15 sta DTIMLO ; value got from DOS source -- 2.39.5