support multiple SmartPort devices

This commit is contained in:
Peter Ferrie 2022-01-31 21:47:36 -08:00
parent 8b4199da52
commit 0f726bfc03
1 changed files with 6 additions and 3 deletions

View File

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