Kernel 0.9.1 : BugFix in DevMgr, not properly enumerating Slot X dev 2 devices

This commit is contained in:
Rémy GIBERT 2017-11-08 08:14:35 +01:00
parent ceadeca5f2
commit d01afeeab1
5 changed files with 10 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -700,19 +700,21 @@ DevMgrInit >LDYAI MSG.DEV
.1 ldx DevMgrInit.DEVCNT
lda DEVLST,x
and #$F0
asl
php Save Drive 1/2 in C
lsr 0SSSxxxx
ror DSSS0000
lsr
lsr
lsr
lsr 00000SSS
tax 000DSSS0
lsr 0000DSSS
and #$7
sta DEV.HEADER+S.DEV.BUSID
asl 0000SSS0
tax
stz ZPPtr1
lda DEVPTRS+1,x
sta ZPPtr1+1
@ -723,6 +725,7 @@ DevMgrInit >LDYAI MSG.DEV
sta DEV.HEADER+S.DEV.DEVID
lda ZPPtr1+1
cmp #$D0 Disk II Driver is $D000
bne .2
@ -776,7 +779,7 @@ DevMgrInit >LDYAI MSG.DEV
.8 dec DevMgrInit.DEVCNT
bpl .1
clc
.80 clc
rts
DevMgrInit.DEVCNT
.BS 1
@ -785,8 +788,7 @@ DevMgrInit.DII >LDYAI A2osX.DIIDrv
>STYA DEV.HEADER+S.DEV.DRV.JMP
jmp DevMgrInit.AddDev
*--------------------------------------
DevMgrInit.RAM >DEBUG
>LDYAI A2osX.RamDrv
DevMgrInit.RAM >LDYAI A2osX.RamDrv
>STYA DEV.HEADER+S.DEV.DRV.JMP
jmp DevMgrInit.AddDev
*--------------------------------------