Kernel 0.93

This commit is contained in:
Rémy GIBERT 2019-07-12 08:22:32 +02:00
parent 9abff2bad5
commit 39d45fa0bf
8 changed files with 52 additions and 51 deletions

Binary file not shown.

View File

@ -30,3 +30,4 @@ S.SMB.HEADER .EQ 32
*-------------------------------------- *--------------------------------------
MAN MAN
SAVE INC/NET.SMB.I SAVE INC/NET.SMB.I

View File

@ -78,6 +78,7 @@ CS.RUN jsr CS.RUN.CheckArgs
bcs .90 bcs .90
jsr CS.RUN.Connect jsr CS.RUN.Connect
>DEBUG
bcs .9 bcs .9
jsr CS.RUN.Negotiate jsr CS.RUN.Negotiate

View File

@ -24,9 +24,8 @@ K.OpenDir jsr PFT.CheckPathYA
>STYA pFD >STYA pFD
stx IO.hFD stx IO.hFD
ldy #S.FD.T
lda #S.FD.T.DIR lda #S.FD.T.DIR
sta (pFD),y sta (pFD)
ldy #1 ldy #1
lda K.Buf256,y One char ("/") ? lda K.Buf256,y One char ("/") ?

View File

@ -855,7 +855,7 @@ IO.MLIOPEN >LDYAI 1024 get a ProDOS IOBUF
* clc * clc
.9 rts .9 rts
*-------------------------------------- *--------------------------------------
IO.DEVDIR .EQ * >PSTR "/DEV/" IO.DEVDIR .EQ * "/DEV/"
*-------------------------------------- *--------------------------------------
STAT.FIFO .AS "/DEV/FIFO" STAT.FIFO .AS "/DEV/FIFO"
*-------------------------------------- *--------------------------------------

View File

@ -537,6 +537,26 @@ MATH.Hex2ACC32 lda (ZPPtr2)
.9 sec .9 sec
rts rts
*-------------------------------------- *--------------------------------------
* Convert A to 2 hex digits in AX
*--------------------------------------
MATH.AToHexAX pha
and #$0F
jsr .8
tax
pla
lsr
lsr
lsr
lsr
.8 ora #$30
cmp #'9'+1
bcc .9
adc #6
.9 rts
*--------------------------------------
* Convert Decimal int at ZPPtr2 to ACC32 * Convert Decimal int at ZPPtr2 to ACC32
*-------------------------------------- *--------------------------------------
MATH.Dec2ACC32 jsr MATH.ACC32ZERO MATH.Dec2ACC32 jsr MATH.ACC32ZERO

View File

@ -311,41 +311,28 @@ K.MKFIFO >STYA ZPPtr1 pathname buffer
bcs STAT.Access2Mode.RTS bcs STAT.Access2Mode.RTS
sta K.S.STAT+S.STAT.DEV hFD sta K.S.STAT+S.STAT.DEV hFD
tax pha
ldy #11 ldy #0
.1 lda STAT.FIFO,y
sta (ZPPtr1),y
iny
cpy #9
bne .1
pla
jsr MATH.AToHexAX
sta (ZPPtr1),y
txa
iny
sta (ZPPtr1),y
iny
lda #0 lda #0
sta (ZPPtr1),y sta (ZPPtr1),y
dey
txa
and #$0F
jsr .7
sta (ZPPtr1),y
dey
txa
lsr
lsr
lsr
lsr
jsr .7
.1 sta (ZPPtr1),y
lda STAT.FIFO-1,y
dey
bpl .1
bra K.MkNod.I bra K.MkNod.I
.7 ora #$30
cmp #'9'+1
bcc .8
adc #6
.8 rts
*/-------------------------------------- */--------------------------------------
* # MkNod * # MkNod
* Create a special or ordinary file. * Create a special or ordinary file.

View File

@ -619,7 +619,8 @@ PrintF.SS ldy #$00 PSTR
cpy K.PrintF.PadL cpy K.PrintF.PadL
bne .1 bne .1
clc
.8 clc
rts rts
.2 lda K.PrintF.PadL .2 lda K.PrintF.PadL
@ -634,33 +635,25 @@ PrintF.SS ldy #$00 PSTR
iny iny
bne .3 bne .3
.8 clc * clc
.9 rts .9 rts
*-------------------------------------- *--------------------------------------
PrintF.HH jsr PrintF.GetByte PrintF.HH jsr PrintF.GetByte
bcs PrintF.COut.RTS bcs PrintF.COut.RTS
tax LO byte pha LO byte
jsr PrintF.H jsr PrintF.H
plx
bcs PrintF.COut.RTS bcs PrintF.COut.RTS
txa txa
bra PrintF.H.1 bra PrintF.H.1
*-------------------------------------- *--------------------------------------
PrintF.H jsr PrintF.GetByte PrintF.H jsr PrintF.GetByte
bcs PrintF.COut.RTS bcs PrintF.COut.RTS
PrintF.H.1 tay
lsr PrintF.H.1 jsr MATH.AToHexAX
lsr jsr PrintF.COut
lsr
lsr
jsr PrintF.COutHex
bcs PrintF.COut.RTS bcs PrintF.COut.RTS
tya txa
and #$0F
*--------------------------------------
PrintF.COutHex ora #$30
cmp #'9'+1
bcc PrintF.COut
adc #6
*-------------------------------------- *--------------------------------------
PrintF.COut phy PrintF.COut phy
ldy PrintF.Cnt ldy PrintF.Cnt