Skip to content

Commit a545dce

Browse files
committed
Do not disable IRq on 1551 (let motor stop between loads
1 parent 0690b9d commit a545dce

File tree

13 files changed

+15
-4
lines changed

13 files changed

+15
-4
lines changed

drivecode/core.inc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,17 @@ readfnam:
114114
ora #ledvalue
115115
}
116116
sta ledport
117+
#if !NO_DRIVE_IRQ
117118
cli
119+
#endif
118120
.if (drive_serial) {
119121
lda #%00000001
120122
!: bit serialdata
121123
beq !-
122124
}
125+
#if !NO_DRIVE_IRQ
123126
sei
127+
#endif
124128
.if (drive_serial) {
125129
lda #%00000000
126130
sta serialdata
@@ -147,7 +151,10 @@ readfnam:
147151
readblock:
148152
ldy #5
149153
sty retrycnt
150-
retry: cli
154+
retry:
155+
#if !NO_DRIVE_IRQ
156+
cli
157+
#endif
151158
lda #$80 // command: read sector
152159
sta blk4job
153160
!: lda blk4job
@@ -172,9 +179,14 @@ retry: cli
172179
readerror:
173180
pla
174181
pla
182+
#if !NO_DRIVE_IRQ
175183
sei
184+
#endif
176185
jmp senderror
177-
readok: sei
186+
readok:
187+
#if !NO_DRIVE_IRQ
188+
sei
189+
#endif
178190
rts
179191
temp1: .byte 0
180192
temp2: .byte 0

drivecode/tcbm_1551.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*=$0500
44
{
55

6+
#define NO_DRIVE_IRQ
67
.var drive_serial = false
78
.var ledinverted = true
8-
99
#import "core.inc"
1010

1111
.label cpuport = $01
@@ -107,7 +107,6 @@ Address 6523 TIA ($4000-$4007)
107107
driveload(init, dirtrack, dirsect, blk4trk, blk4sec, blk4job, blk4buf, retrycnt, hdrid1, hdrid2, drv0id1, drv0id2, readbyte, writebyte, ledport, ledvalue, 0, drive_serial, ledinverted)
108108

109109
init:
110-
sei
111110
cld
112111
lda #%11111111 //dir=output
113112
sta padir

sd2iec/demo.prg

11 Bytes
Binary file not shown.

sd2iec/init.prg

6 Bytes
Binary file not shown.

sd2iec/initquiet.prg

8 Bytes
Binary file not shown.

sd2iec/iolibv3exotest.prg

11 Bytes
Binary file not shown.

sd2iec/iolibv3test.prg

10 Bytes
Binary file not shown.

sd2iec/stripped altern.prg

-6 Bytes
Binary file not shown.

sd2iec/stripped loader.prg

-6 Bytes
Binary file not shown.

sd2iec/stripped test.prg

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)