mirror of
https://github.com/A2osX/A2osX.git
synced 2025-08-05 13:24:57 +00:00
Kernel 0.92
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -265,7 +265,7 @@ K.FreeMem.FREED clc
|
||||
.1 >SYSCALL printf
|
||||
|
||||
plx
|
||||
|
||||
>DEBUG
|
||||
sec
|
||||
rts
|
||||
*--------------------------------------
|
||||
|
Reference in New Issue
Block a user