Kernel 0.92

This commit is contained in:
Rémy GIBERT
2018-12-20 08:33:10 +01:00
parent 15caee549d
commit c760a752ce
10 changed files with 28 additions and 32 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -8,6 +8,7 @@ AUTO 4,1
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/MLI.I
.INB INC/MLI.E.I
*--------------------------------------
X.COPY.TO.DEST .EQ 0

View File

@@ -8,6 +8,7 @@ AUTO 4,1
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/MLI.I
.INB INC/MLI.E.I
*--------------------------------------
X.COPY.TO.DEST .EQ 1

View File

@@ -8,6 +8,7 @@ AUTO 4,1
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/MLI.I
.INB INC/MLI.E.I
*--------------------------------------
X.COPY.TO.DEST .EQ 0

View File

@@ -8,6 +8,7 @@ AUTO 4,1
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/MLI.I
.INB INC/MLI.E.I
*--------------------------------------
X.COPY.TO.DEST .EQ 1

View File

@@ -8,6 +8,7 @@ AUTO 4,1
*--------------------------------------
.INB INC/MACROS.I
.INB INC/A2OSX.I
.INB INC/MLI.I
.INB INC/MLI.E.I
*--------------------------------------
X.COPY.TO.DEST .EQ 0

View File

@@ -92,36 +92,17 @@ InitSrcDirYA >SYSCALL RealPath
ldy #1
lda (ZPPtr1),y
* beq .5 we have '/'
bne .55
jmp .5
beq .5 we have '/'
.55 >PUSHEA.G STAT
>PUSHEA.G STAT
>LDYA ZPPtr1
>SYSCALL Stat
bcs .1 File/DIR does not exists, go extract pattern
>LDA.G STAT+S.STAT.P.TYPE
cmp #$0f
cmp #S.FI.T.DIR
bne .4 TYPE not a DIR, extract....
ldy #0
.56 iny
lda (ZPPtr1),y
bne .56
dey
lda #'/'
cmp (ZPPtr1),y
beq .5
iny
sta (ZPPtr1),y
iny
lda #0
sta (ZPPtr1),y
bra .5 TYPE=DIR, do not extract pattern
.1 ldy #0 TYPE is not DIR, check if wc
@@ -194,7 +175,18 @@ InitSrcDirYA >SYSCALL RealPath
sta (ZPPtr2),y
bne .6
>LDYA ZPPtr2
dey
lda #'/'
cmp (ZPPtr2),y
beq .7
iny
sta (ZPPtr2),y
iny
lda #0
sta (ZPPtr2),y
.7 >LDYA ZPPtr2
>SYSCALL OpenDir
bcs .9
@@ -236,7 +228,7 @@ InitDstDirYA >SYSCALL RealPath
bcs .1 File/DIR does not exists, go extract DstFileName
>LDA.G STAT+S.STAT.P.TYPE
cmp #$0f
cmp #S.FI.T.DIR
beq .5 Dst is a directory...no destfilename
.1 ldy #0
@@ -324,10 +316,9 @@ GetNextEntry jsr GetEntry
adc /S.STAT
sta ZPFileName+1 Make nDIRENTs[i] point to next DIRENT
lda (ZPFileName) are we at end of this buffer ?
jsr GetFilenameLen are we at end of this buffer ?
beq .1 yes, go read next one ...
jsr GetFilenameLen
jsr SetFileStatPtr
jsr GetoDIRENT

View File

@@ -265,7 +265,7 @@ K.FreeMem.FREED clc
.1 >SYSCALL printf
plx
>DEBUG
sec
rts
*--------------------------------------