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
This commit is contained in:
@@ -48,14 +48,26 @@
|
|||||||
adc #1
|
adc #1
|
||||||
sta DUNIT ; unit number (d1,d2,d3,...)
|
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
|
lda (ptr1),y
|
||||||
sta DBYTLO
|
sta DBYTLO
|
||||||
iny
|
iny
|
||||||
lda (ptr1),y
|
lda (ptr1),y
|
||||||
sta DBYTHI
|
sta DBYTHI
|
||||||
|
|
||||||
lda #DISKID ; SIO bus ID of diskette drive
|
_cont: lda #DISKID ; SIO bus ID of diskette drive
|
||||||
sta DDEVIC
|
sta DDEVIC
|
||||||
lda #15
|
lda #15
|
||||||
sta DTIMLO ; value got from DOS source
|
sta DTIMLO ; value got from DOS source
|
||||||
|
|||||||
Reference in New Issue
Block a user