mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-29 02:49:54 +00:00
04a83f00f3
MKDIR:completely implemented LS/RM/MV/CP: combined switches KERNEL:SList API now handle options to handle several languages/parsers
62 lines
1015 B
Plaintext
62 lines
1015 B
Plaintext
NEW
|
||
AUTO 3,1
|
||
*--------------------------------------
|
||
* K.Mount
|
||
* ## ASM
|
||
* `>PUSHW mountpoint`
|
||
* `>PUSHW callback`
|
||
*
|
||
* Out : A = hMount
|
||
*--------------------------------------
|
||
K.Mount jsr SHARED.PullP2P1 callback,mountpoint
|
||
|
||
ldx #1
|
||
|
||
.1 lda Flt.Table.pftHI-1,x
|
||
beq .2
|
||
|
||
inx
|
||
cpx #K.FLT.MAX+1
|
||
bne .1
|
||
|
||
lda #E.OOH
|
||
sec
|
||
rts
|
||
|
||
.2 lda ZPPtr1
|
||
sta Flt.Table.pftLO-1,x
|
||
lda ZPPtr1+1
|
||
sta Flt.Table.pftHI-1,x
|
||
|
||
lda ZPPtr2
|
||
sta Flt.Table.cbLO-1,x
|
||
lda ZPPtr2+1
|
||
sta Flt.Table.cbHI-1,x
|
||
|
||
txa
|
||
|
||
clc
|
||
rts
|
||
*--------------------------------------
|
||
* K.UMount
|
||
* In : A = hMount
|
||
* Out :
|
||
*--------------------------------------
|
||
K.UMount tax
|
||
|
||
lda Flt.Table.pftHI-1,x
|
||
beq .9
|
||
|
||
stz Flt.Table.pftHI-1,x
|
||
clc
|
||
rts
|
||
|
||
.9 lda #E.INVH
|
||
sec
|
||
rts
|
||
*--------------------------------------
|
||
MAN
|
||
SAVE usr/src/sys/kernel.s.mount
|
||
LOAD usr/src/sys/kernel.s
|
||
ASM
|