Kernel 0.93+

This commit is contained in:
Rémy GIBERT 2019-10-17 15:30:09 +02:00
parent 1026bf00d9
commit 893c313fce
2 changed files with 27 additions and 10 deletions

Binary file not shown.

View File

@ -503,8 +503,10 @@ DetectZ80 ldx #Z80Code.Size
*--------------------------------------
DevMgrInit >LDYAI MSG.DEV
>SYSCALL2 puts
lda DEVCNT
sta .1+1
.1 ldx #$ff SELF MODIFIED
lda DEVLST,x
and #$F0
@ -519,12 +521,15 @@ DevMgrInit >LDYAI MSG.DEV
lsr 0000DSSS
and #$7
sta FD.BDEV+S.FD.DEV.BUSID
ora #$30
sta FD.BDEV.NAME+1 SnDy
lda DEVPTRS,x
sta FD.BDEV+S.FD.DEV.BUSPTR
lda DEVPTRS+1,x
sta FD.BDEV+S.FD.DEV.BUSPTR+1
sta ZPPtr1+1
stz ZPPtr1 Cn00
plp
@ -540,51 +545,63 @@ DevMgrInit >LDYAI MSG.DEV
jsr DevMgrInit.RAM
bra .8 keep slot free
.2 cmp #$D0 Disk II Driver is $D000
bne .3
jsr DevMgrInit.DII
lda #A2osX.S.DII
bra .7 Go mark slot as USED
.3 bcs .53 > $D0, Some BLK remapped DRV
cmp #$C0
bcs .4 $C0 .. $CF, in slot ROM
jsr DevMgrInit.USR Outside ROM/LC space, User loaded BLK dev
bra .8 keep slot free
.4 ldx #SmartPort.SIG-SmartPort.OFS-1
.5 ldy SmartPort.OFS,x Check if there is a smartport firmware
lda (ZPPtr1),y
cmp SmartPort.SIG,x
bne .8 not a Disk Controller...
dex
bpl .5
ldy #7
lda (ZPPtr1),y
bne .6 $Cn07=00 : SmartPort
lda ZPPtr1+1 get $Cn
and #$f get $0n
cmp FD.BDEV+S.FD.DEV.BUSID same as SSS ?
beq .52
* lda ZPPtr1+1 get $Cn
* and #$0f get $0n
* cmp FD.BDEV+S.FD.DEV.BUSID same as SSS ?
* beq .52
inc FD.BDEV+S.FD.DEV.DEVID Remapped SP devices....
inc FD.BDEV+S.FD.DEV.DEVID Add 2 to DEVID (2 & 3)
jsr DevMgrInit.SP
bra .8 Phantom slot...
* inc FD.BDEV+S.FD.DEV.DEVID Remapped SP devices....
* inc FD.BDEV+S.FD.DEV.DEVID Add 2 to DEVID (2 & 3)
* jsr DevMgrInit.SP
* bra .8 Phantom slot...
.52 jsr DevMgrInit.SP
lda #A2osX.S.SP
bra .7
.53 inc FD.BDEV+S.FD.DEV.DEVID Remapped BLK devices....
inc FD.BDEV+S.FD.DEV.DEVID Add 2 to DEVID (2 & 3)
.53
* inc FD.BDEV+S.FD.DEV.DEVID Remapped BLK devices....
* inc FD.BDEV+S.FD.DEV.DEVID Add 2 to DEVID (2 & 3)
.6 jsr DevMgrInit.BLK
lda #A2osX.S.BLK
.7 ldx FD.BDEV+S.FD.DEV.BUSID
sta A2osX.S,x
.8 dec .1+1
bmi .80
jmp .1
.80 clc
rts