mirror of
https://github.com/A2osX/A2osX.git
synced 2025-02-16 18:30:26 +00:00
Kernel 0.93+
This commit is contained in:
parent
046b4ae89e
commit
e07b58ccf3
@ -3,7 +3,7 @@ NEW
|
||||
.LIST OFF
|
||||
.OP 65C02
|
||||
.OR $2000
|
||||
.TF BIN/WHO
|
||||
.TF bin/who
|
||||
*--------------------------------------
|
||||
.INB INC/MACROS.I
|
||||
.INB INC/MLI.I
|
||||
@ -49,8 +49,10 @@ CS.RUN >LDYA L.MSG0
|
||||
|
||||
ldx #1
|
||||
stx USRID
|
||||
|
||||
.1 lda S.Table.hSession-1,x
|
||||
beq .7
|
||||
|
||||
lda S.Table.hFile-1,x
|
||||
tax
|
||||
jsr CS.RUN.GETIO
|
||||
@ -60,6 +62,7 @@ CS.RUN >LDYA L.MSG0
|
||||
lda S.Table.hSession-1,x
|
||||
>SYSCALL GetMemPtr
|
||||
>STYA ZPSessionPtr
|
||||
|
||||
lda ZPSessionPtr
|
||||
clc
|
||||
adc #S.SESSION.NAME
|
||||
@ -67,23 +70,33 @@ CS.RUN >LDYA L.MSG0
|
||||
lda ZPSessionPtr+1
|
||||
adc /S.SESSION.NAME
|
||||
>PUSHYA
|
||||
|
||||
>PUSHB (ZPSessionPtr)
|
||||
|
||||
ldy #S.SESSION.UID
|
||||
>PUSHB (ZPSessionPtr),y
|
||||
|
||||
>PUSHB USRID
|
||||
|
||||
>PUSHBI 7
|
||||
|
||||
>LDYA L.MSG1
|
||||
|
||||
>SYSCALL printf
|
||||
bcs .9
|
||||
|
||||
.7 inc USRID
|
||||
ldx USRID
|
||||
cpx #K.USR.MAX+1
|
||||
bne .1
|
||||
|
||||
.8 lda #0 tell TSKMGR that all done ok, but
|
||||
sec we do not want to stay in memory
|
||||
.9 rts
|
||||
*--------------------------------------
|
||||
CS.RUN.GETIO lda OF.Table.hPath-1,x
|
||||
bne .1
|
||||
|
||||
lda OF.Table.hFD-1,x
|
||||
tax
|
||||
|
||||
@ -95,8 +108,9 @@ CS.RUN.GETIO lda OF.Table.hPath-1,x
|
||||
lda Dev.Table,x
|
||||
|
||||
adc /S.FD.DEV
|
||||
|
||||
* clc
|
||||
rts
|
||||
|
||||
.1 >SYSCALL GetMemPtr
|
||||
rts
|
||||
*--------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user