2020-05-17 17:34:32 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* K.Mount
|
|
|
|
|
* In :
|
|
|
|
|
* Out :
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
K.Mount
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* K.UMount
|
|
|
|
|
* In :
|
|
|
|
|
* Out :
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
K.UMount
|
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2020-07-07 13:44:28 +00:00
|
|
|
|
K.Online >PULLW K.MLI.PARAMS+2
|
2020-09-28 15:43:38 +00:00
|
|
|
|
>PULLB K.MLI.PARAMS+1
|
2020-07-07 13:44:28 +00:00
|
|
|
|
>MLICALL MLIONLINE
|
|
|
|
|
rts
|
2020-07-30 14:10:49 +00:00
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # GetStkObj
|
|
|
|
|
* ## C
|
|
|
|
|
* `int *ptr getstkobj (shoirt int hStkObj);`
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `lda hStkObj`
|
|
|
|
|
* `>SYSCALL GetStkObj`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* CC : success
|
|
|
|
|
* X = hMem
|
|
|
|
|
* Y,A = ptr
|
|
|
|
|
* CS : error
|
|
|
|
|
* A = EC
|
|
|
|
|
*\--------------------------------------
|
2020-07-30 13:59:04 +00:00
|
|
|
|
K.GetStkObj tax hMem for CopyToMain
|
|
|
|
|
|
|
|
|
|
jsr MEM.GetMemByID
|
|
|
|
|
|
|
|
|
|
ldy #S.MEM.LEN
|
|
|
|
|
lda (ZPMemMgrSPtr),y
|
|
|
|
|
pha
|
|
|
|
|
iny
|
|
|
|
|
lda (ZPMemMgrSPtr),y
|
|
|
|
|
ply YA = Len
|
|
|
|
|
|
|
|
|
|
jmp MEM.CopyToMain
|
|
|
|
|
*--------------------------------------
|
2020-05-17 17:34:32 +00:00
|
|
|
|
MAN
|
2020-07-07 13:44:28 +00:00
|
|
|
|
SAVE usr/src/sys/kernel.s.mount
|
|
|
|
|
LOAD usr/src/sys/kernel.s
|
2020-05-17 17:34:32 +00:00
|
|
|
|
ASM
|