mirror of
https://github.com/A2osX/A2osX.git
synced 2025-08-15 01:27:49 +00:00
Kernel 0.9.2
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -21,6 +21,11 @@ K.Args2ArgV pha
|
|||||||
|
|
||||||
K.Args2ArgV.I jsr K.ExpandStr
|
K.Args2ArgV.I jsr K.ExpandStr
|
||||||
bcs .9
|
bcs .9
|
||||||
|
phy
|
||||||
|
pha
|
||||||
|
>SYSCALL puts
|
||||||
|
pla
|
||||||
|
ply
|
||||||
|
|
||||||
>STYA ZPPtr1
|
>STYA ZPPtr1
|
||||||
stx .80+1
|
stx .80+1
|
||||||
|
@@ -378,6 +378,41 @@ K.GetMemByID sta ZPMemMgrSPtr
|
|||||||
ldy ZPMemMgrSPtr
|
ldy ZPMemMgrSPtr
|
||||||
rts
|
rts
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
|
* # GetMemStat
|
||||||
|
* **In:**
|
||||||
|
* Y,A = Ptr to 24 bytes buffer
|
||||||
|
* ## RETURN VALUE
|
||||||
|
* Buffer filled with memory stats
|
||||||
|
*\--------------------------------------
|
||||||
|
K.GetMemStat >STYA ZPMemMgrTmp1
|
||||||
|
|
||||||
|
ldy #22
|
||||||
|
ldx #6
|
||||||
|
|
||||||
|
.1 lda DevMgr.Stat,x
|
||||||
|
sta (ZPMemMgrTmp1),y
|
||||||
|
dey
|
||||||
|
dex
|
||||||
|
bpl .1
|
||||||
|
|
||||||
|
sta SETREADAUX
|
||||||
|
|
||||||
|
ldy #14
|
||||||
|
jsr .2
|
||||||
|
|
||||||
|
sta CLRREADAUX
|
||||||
|
|
||||||
|
ldy #6
|
||||||
|
|
||||||
|
.2 ldx #6
|
||||||
|
|
||||||
|
.3 lda Mem.Table,x
|
||||||
|
sta (ZPMemMgrTmp1),y
|
||||||
|
dey
|
||||||
|
dex
|
||||||
|
bpl .3
|
||||||
|
rts
|
||||||
|
*/--------------------------------------
|
||||||
* # NewStr
|
* # NewStr
|
||||||
* Create a new copy of this C-String
|
* Create a new copy of this C-String
|
||||||
* Y,A = Ptr to source C-String
|
* Y,A = Ptr to source C-String
|
||||||
|
@@ -16,9 +16,9 @@ PS.Args .BS 2
|
|||||||
* A = Child PSID
|
* A = Child PSID
|
||||||
*\--------------------------------------
|
*\--------------------------------------
|
||||||
K.ExecL pha
|
K.ExecL pha
|
||||||
lda #K.Buf256
|
lda #K.IOBuf
|
||||||
sta ZPPtr2
|
sta ZPPtr2
|
||||||
lda /K.Buf256
|
lda /K.IOBuf
|
||||||
sta ZPPtr2+1
|
sta ZPPtr2+1
|
||||||
pla
|
pla
|
||||||
jsr K.Args2ArgV.I
|
jsr K.Args2ArgV.I
|
||||||
@@ -26,7 +26,12 @@ K.ExecL pha
|
|||||||
|
|
||||||
>RET 1 discard flags
|
>RET 1 discard flags
|
||||||
|
|
||||||
.1 >LDYAI K.Buf256
|
.1 >LDYAI K.IOBuf
|
||||||
|
phy
|
||||||
|
pha
|
||||||
|
>SYSCALL puts
|
||||||
|
pla
|
||||||
|
ply
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
* # ExecV
|
* # ExecV
|
||||||
* ## C
|
* ## C
|
||||||
@@ -59,6 +64,12 @@ K.ExecV >STYA PS.Args
|
|||||||
pla
|
pla
|
||||||
>SYSCALL GetMemPtr
|
>SYSCALL GetMemPtr
|
||||||
|
|
||||||
|
phy
|
||||||
|
pha
|
||||||
|
>SYSCALL puts
|
||||||
|
pla
|
||||||
|
ply
|
||||||
|
>DEBUG
|
||||||
jsr PS.Load
|
jsr PS.Load
|
||||||
bcc .8
|
bcc .8
|
||||||
|
|
||||||
@@ -392,41 +403,6 @@ PS.SetMemOwner lda CORE.LastPSID
|
|||||||
sta (ZPMEMMGR),y
|
sta (ZPMEMMGR),y
|
||||||
rts
|
rts
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
* # GetMemStat
|
|
||||||
* **In:**
|
|
||||||
* Y,A = Ptr to 24 bytes buffer
|
|
||||||
* ## RETURN VALUE
|
|
||||||
* Buffer filled with memory stats
|
|
||||||
*\--------------------------------------
|
|
||||||
K.GetMemStat >STYA ZPMemMgrTmp1
|
|
||||||
|
|
||||||
ldy #22
|
|
||||||
ldx #6
|
|
||||||
|
|
||||||
.1 lda DevMgr.Stat,x
|
|
||||||
sta (ZPMemMgrTmp1),y
|
|
||||||
dey
|
|
||||||
dex
|
|
||||||
bpl .1
|
|
||||||
|
|
||||||
sta SETREADAUX
|
|
||||||
|
|
||||||
ldy #14
|
|
||||||
jsr .2
|
|
||||||
|
|
||||||
sta CLRREADAUX
|
|
||||||
|
|
||||||
ldy #6
|
|
||||||
|
|
||||||
.2 ldx #6
|
|
||||||
|
|
||||||
.3 lda Mem.Table,x
|
|
||||||
sta (ZPMemMgrTmp1),y
|
|
||||||
dey
|
|
||||||
dex
|
|
||||||
bpl .3
|
|
||||||
rts
|
|
||||||
*/--------------------------------------
|
|
||||||
* # GetPSStatus
|
* # GetPSStatus
|
||||||
* **In:**
|
* **In:**
|
||||||
* A = PID
|
* A = PID
|
||||||
|
Reference in New Issue
Block a user