support multiple SmartPort devices

This commit is contained in:
Peter Ferrie 2022-01-31 21:47:36 -08:00
parent 8b4199da52
commit 0f726bfc03

View File

@ -459,6 +459,7 @@ not_floppy
;but the virtual slot behaviour differs slightly from regular ProDOS ;but the virtual slot behaviour differs slightly from regular ProDOS
;so we scan for the SmartPort interface in all cases ;so we scan for the SmartPort interface in all cases
iterdevice
- dex - dex
stx scratchhi stx scratchhi
ldy #0 ldy #0
@ -589,9 +590,11 @@ slot ldx $cfff
sta hackstar sta hackstar
iterunit inc unrunit2 iterunit inc unrunit2
jsr unrentrysei bne +
ldx slot + 2
+ ldy #$10 jmp iterdevice
+ jsr unrentrysei
ldy #$10
- lda readbuff + 3, y - lda readbuff + 3, y
cmp readbuff + $203, y cmp readbuff + $203, y
bne iterunit bne iterunit