mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-25 20:33:13 +00:00
Kernel 0.9.2
This commit is contained in:
parent
42d37dbaf2
commit
2ecedf2c3c
@ -12,18 +12,18 @@ CS : Out Of Bound
|
|||||||
|
|
||||||
# LoadDrv
|
# LoadDrv
|
||||||
|
|
||||||
##ASM
|
## ASM
|
||||||
**In:**
|
**In:**
|
||||||
Y,A = PTR to "NAME.DRV [PARAM]" C-String
|
Y,A = PTR to "NAME.DRV [PARAM]" C-String
|
||||||
**Out:**
|
**Out:**
|
||||||
none
|
none
|
||||||
|
|
||||||
#InsDrv
|
# InsDrv
|
||||||
|
|
||||||
##C
|
## C
|
||||||
`void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
|
`void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
|
||||||
|
|
||||||
##ASM
|
## ASM
|
||||||
**In:**
|
**In:**
|
||||||
`>PUSHW DRV.END`
|
`>PUSHW DRV.END`
|
||||||
`>PUSHW DRV.CS.END`
|
`>PUSHW DRV.CS.END`
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -45,7 +45,7 @@ CS.RUN lda #1
|
|||||||
>STA.G hFullPath
|
>STA.G hFullPath
|
||||||
pla
|
pla
|
||||||
ply
|
ply
|
||||||
>SYSCALL MKDir.YA
|
>SYSCALL MKDir
|
||||||
bcs .9
|
bcs .9
|
||||||
|
|
||||||
lda #0
|
lda #0
|
||||||
|
@ -38,7 +38,6 @@ Dev.Detect >LDYA L.MSG.DETECT
|
|||||||
>PUSHWI DRV.CS.END
|
>PUSHWI DRV.CS.END
|
||||||
>PUSHWI DRV.CS.START
|
>PUSHWI DRV.CS.START
|
||||||
>LDYA L.DRV.CS.START
|
>LDYA L.DRV.CS.START
|
||||||
>DEBUG
|
|
||||||
>SYSCALL InsDrv
|
>SYSCALL InsDrv
|
||||||
bcs .9
|
bcs .9
|
||||||
>STYA FD.DEV+S.FD.DEV.DRVPTR
|
>STYA FD.DEV+S.FD.DEV.DRVPTR
|
||||||
@ -173,7 +172,7 @@ CONTROL sta SETTEXT
|
|||||||
CLOSE lda #S.DIB.S.OPENED
|
CLOSE lda #S.DIB.S.OPENED
|
||||||
trb DIB+S.DIB.S
|
trb DIB+S.DIB.S
|
||||||
|
|
||||||
stz A2osX.SCRNDEVS+1
|
stz A2osX.SCRNDEVS
|
||||||
clc
|
clc
|
||||||
rts
|
rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
@ -996,7 +995,6 @@ DIB .DA #S.DIB.S.WRITE+S.DIB.S.READ
|
|||||||
>PSTR "ANSI 80c Console"
|
>PSTR "ANSI 80c Console"
|
||||||
.DA #S.DIB.T.CHAR
|
.DA #S.DIB.T.CHAR
|
||||||
.DA #0
|
.DA #0
|
||||||
.DA #0
|
|
||||||
.DA KVER
|
.DA KVER
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DRV.END
|
DRV.END
|
||||||
|
@ -290,6 +290,7 @@ S.MSTAT .EQ 24
|
|||||||
* IOCTL device API
|
* IOCTL device API
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
C.EOF .EQ 4
|
C.EOF .EQ 4
|
||||||
|
C.DEL .EQ 127
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DEVID.NULL .EQ 0
|
DEVID.NULL .EQ 0
|
||||||
DEVID.SYS .EQ 1
|
DEVID.SYS .EQ 1
|
||||||
@ -356,7 +357,7 @@ S.DIB.T.CLOCK .EQ $0E Clock
|
|||||||
S.DIB.T.MODEM .EQ $0F Modem
|
S.DIB.T.MODEM .EQ $0F Modem
|
||||||
S.DIB.T.DISKII .EQ $10
|
S.DIB.T.DISKII .EQ $10
|
||||||
S.DIB.T.PRODOS .EQ $11
|
S.DIB.T.PRODOS .EQ $11
|
||||||
S.DIB.T.NET .EQ $12 Network board
|
S.DIB.T.NIC .EQ $12 Network Iterface Card
|
||||||
S.DIB.T.XY .EQ $13 X,Y Pointing Device
|
S.DIB.T.XY .EQ $13 X,Y Pointing Device
|
||||||
S.DIB.T.CHAR .EQ $14
|
S.DIB.T.CHAR .EQ $14
|
||||||
S.DIB.T.GFX .EQ $15
|
S.DIB.T.GFX .EQ $15
|
||||||
|
24
README.md
24
README.md
@ -1,4 +1,4 @@
|
|||||||
# A2osX (0.9.2) Multi-Tasking OS for Apple II
|
# A2osX (0.92) Multi-Tasking OS for Apple II
|
||||||
|
|
||||||
**!Version 0.9.1 archived!**
|
**!Version 0.9.1 archived!**
|
||||||
|
|
||||||
@ -237,10 +237,10 @@ OApple+1,OApple+2,OApple+3 to switch between screens : Kernel Log, text, DHGR.
|
|||||||
|
|
||||||
| Name | Status | Comment | K.Ver |
|
| Name | Status | Comment | K.Ver |
|
||||||
| ---- | ------ | ------- | ------|
|
| ---- | ------ | ------- | ------|
|
||||||
| INSDRV | Working | | 0.9.1 |
|
| INSDRV | Working | | 0.92 |
|
||||||
| GETTY | Working | | 0.9.1 |
|
| GETTY | Working | | 0.92 |
|
||||||
| LOGIN | In Progress | no auth using /etc/passd yet | 0.9.1 |
|
| LOGIN | In Progress | no auth using /etc/passd yet | 0.92 |
|
||||||
| SHELL | Working | (See Internal Shell commands) | 0.9.1 |
|
| SHELL | Working | (See Internal Shell commands) | 0.92 |
|
||||||
| KCONFIG | Working | Kernel Configuration Utility | 0.9.1 |
|
| KCONFIG | Working | Kernel Configuration Utility | 0.9.1 |
|
||||||
| ---- | ------ | ------- | ----- |
|
| ---- | ------ | ------- | ----- |
|
||||||
| TCPIPD | Working | Socket API.ARP,IP,ICMP,UDP & TCP ok | 0.9.1 |
|
| TCPIPD | Working | Socket API.ARP,IP,ICMP,UDP & TCP ok | 0.9.1 |
|
||||||
@ -285,7 +285,7 @@ note : '$VAR' does NOT expand Variable
|
|||||||
|
|
||||||
| Name | Status | Comment | K.Ver |
|
| Name | Status | Comment | K.Ver |
|
||||||
| ---- | ------ | ------- | ----- |
|
| ---- | ------ | ------- | ----- |
|
||||||
| Console.DRV | Working | ANSI support in Progress. | 0.9.1 |
|
| Console.DRV | Working | ANSI support in Progress. | 0.92 |
|
||||||
| SSC.DRV | Working | Apple "Super Serial Card" Driver | 0.9.1 |
|
| SSC.DRV | Working | Apple "Super Serial Card" Driver | 0.9.1 |
|
||||||
| SSC.I.DRV | Working | Apple "Super Serial Card" Driver (IRQ enabled) | 0.9.1 |
|
| SSC.I.DRV | Working | Apple "Super Serial Card" Driver (IRQ enabled) | 0.9.1 |
|
||||||
| PIC.DRV | In Progress | Apple "Parallel Interface Card" Driver, renamed from PPIC.DRV | 0.9 |
|
| PIC.DRV | In Progress | Apple "Parallel Interface Card" Driver, renamed from PPIC.DRV | 0.9 |
|
||||||
@ -300,10 +300,10 @@ note : '$VAR' does NOT expand Variable
|
|||||||
## BIN,External Shell commands:
|
## BIN,External Shell commands:
|
||||||
| Name | Status | Comment | K.Ver |
|
| Name | Status | Comment | K.Ver |
|
||||||
| ---- | ------ | ------- | ----- |
|
| ---- | ------ | ------- | ----- |
|
||||||
| MEM | Working | Old dump behavior is now MEMDUMP. New MEM command displays MEMSTAT (Main, Aux & Kernel Memory) | 0.9.1 |
|
| MEM | Working | Old dump behavior is now MEMDUMP. New MEM command displays MEMSTAT (Main, Aux & Kernel Memory) | 0.92 |
|
||||||
| LSDEV | Working | | 0.9.1 |
|
| LSDEV | Working | | 0.92 |
|
||||||
| PS | Working | | 0.9.1 |
|
| PS | Working | | 0.92 |
|
||||||
| MD | Working | | 0.9.1 |
|
| MD | Working | | 0.92 |
|
||||||
| LS | Working | -A : Do Not Print . & .. | 0.9.1 |
|
| LS | Working | -A : Do Not Print . & .. | 0.9.1 |
|
||||||
| | | -L : long listing with size/date... | |
|
| | | -L : long listing with size/date... | |
|
||||||
| | | -R : Recurse subdirectories | |
|
| | | -R : Recurse subdirectories | |
|
||||||
@ -318,7 +318,7 @@ note : '$VAR' does NOT expand Variable
|
|||||||
| | | -Q : Quiet | |
|
| | | -Q : Quiet | |
|
||||||
| | | -R : Recurse subdirectories | |
|
| | | -R : Recurse subdirectories | |
|
||||||
| | | -Y : Dont't Prompt For Override | |
|
| | | -Y : Dont't Prompt For Override | |
|
||||||
| CAT | Working | -A : Show All non printable caracters | 0.9.1 |
|
| CAT | Working | -A : Show All non printable caracters | 0.92 |
|
||||||
| | | -N : Number all output lines | |
|
| | | -N : Number all output lines | |
|
||||||
| | | -S : Suppress repeated empty output lines | |
|
| | | -S : Suppress repeated empty output lines | |
|
||||||
| CHTYP | Working | -C : Continue On Error | 0.9.1 |
|
| CHTYP | Working | -C : Continue On Error | 0.9.1 |
|
||||||
@ -332,7 +332,7 @@ note : '$VAR' does NOT expand Variable
|
|||||||
| FORMAT | In Progress | -L : Low-Level Format | 0.9.1 |
|
| FORMAT | In Progress | -L : Low-Level Format | 0.9.1 |
|
||||||
| | | -1..9 : Catalog Size (block count) | |
|
| | | -1..9 : Catalog Size (block count) | |
|
||||||
| MD5 | In Progress | -D : String Input | 0.9.1 |
|
| MD5 | In Progress | -D : String Input | 0.9.1 |
|
||||||
| EDIT | Working | still missing : find/replace | 0.9.1 |
|
| EDIT | Working | still missing : find/replace | 0.92 |
|
||||||
| NSCUTIL | Working | Tool for setting time in NSC/DL1216E | 0.9 |
|
| NSCUTIL | Working | Tool for setting time in NSC/DL1216E | 0.9 |
|
||||||
| ---- | ------ | ------- | ----- |
|
| ---- | ------ | ------- | ----- |
|
||||||
| ARP | Working | dump ARP cache, setup a static ARP entry | 0.9.1 |
|
| ARP | Working | dump ARP cache, setup a static ARP entry | 0.9.1 |
|
||||||
|
@ -66,7 +66,7 @@ CS.INIT clc
|
|||||||
rts
|
rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
CS.RUN >LDYA L.FILENAME
|
CS.RUN >LDYA L.FILENAME
|
||||||
>SYSCALL ExpandStr.YA
|
>SYSCALL ExpandStr
|
||||||
txa
|
txa
|
||||||
>STA.G hFileName
|
>STA.G hFileName
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ CS.RUN.Load >PUSHEA.G StatBuf
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
.99 >LDYAI 16
|
.99 >LDYAI 16
|
||||||
>SYSCALL GetMem0.YA
|
>SYSCALL GetMem0
|
||||||
|
|
||||||
>STYA ZPCfgPtr
|
>STYA ZPCfgPtr
|
||||||
|
|
||||||
@ -238,13 +238,13 @@ CS.RUN.Save >PUSHWI 0 AUXTYPE
|
|||||||
tax
|
tax
|
||||||
pla
|
pla
|
||||||
phx
|
phx
|
||||||
>SYSCALL FClose.A
|
>SYSCALL FClose
|
||||||
pla
|
pla
|
||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.1 pla
|
.1 pla
|
||||||
>SYSCALL FClose.A
|
>SYSCALL FClose
|
||||||
|
|
||||||
.9 rts
|
.9 rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
|
@ -4,10 +4,10 @@ AUTO 4,1
|
|||||||
.LIST OFF
|
.LIST OFF
|
||||||
.OP 65C02
|
.OP 65C02
|
||||||
.OR $2000
|
.OR $2000
|
||||||
.TF /A2OSX.BUILD/SBIN/LOGIN
|
.TF SBIN/LOGIN
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
.INB /A2OSX.BUILD/INC/MACROS.I
|
.INB INC/MACROS.I
|
||||||
.INB /A2OSX.BUILD/INC/A2OSX.I
|
.INB INC/A2OSX.I
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
ZPPTR1 .EQ ZPBIN
|
ZPPTR1 .EQ ZPBIN
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
|
@ -2,7 +2,7 @@ NEW
|
|||||||
PREFIX /A2OSX.BUILD
|
PREFIX /A2OSX.BUILD
|
||||||
AUTO 4,1
|
AUTO 4,1
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
* K.LoadLib
|
* LoadLib
|
||||||
* in :
|
* in :
|
||||||
* Y,A = PTR To "LibName.o" C-String
|
* Y,A = PTR To "LibName.o" C-String
|
||||||
* out :
|
* out :
|
||||||
@ -35,7 +35,7 @@ K.LoadLib jsr BIN.FindLIB
|
|||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
* K.UnloadLib
|
* UnloadLib
|
||||||
* in :
|
* in :
|
||||||
* A = hMem To Lib
|
* A = hMem To Lib
|
||||||
* out :
|
* out :
|
||||||
@ -66,7 +66,7 @@ K.UnloadLib pha
|
|||||||
jmp K.FreeMem
|
jmp K.FreeMem
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
* # LoadDrv
|
* # LoadDrv
|
||||||
* ##ASM
|
* ## ASM
|
||||||
* **In:**
|
* **In:**
|
||||||
* Y,A = PTR to "NAME.DRV [PARAM]" C-String
|
* Y,A = PTR to "NAME.DRV [PARAM]" C-String
|
||||||
* **Out:**
|
* **Out:**
|
||||||
@ -280,10 +280,10 @@ BIN.Load.1 >PUSHWI K.S.STAT
|
|||||||
BIN.CmdLine .BS 2
|
BIN.CmdLine .BS 2
|
||||||
BIN.hMem .BS 1
|
BIN.hMem .BS 1
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
* #InsDrv
|
* # InsDrv
|
||||||
* ##C
|
* ## C
|
||||||
* `void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
|
* `void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
|
||||||
* ##ASM
|
* ## ASM
|
||||||
* **In:**
|
* **In:**
|
||||||
* `>PUSHW DRV.END`
|
* `>PUSHW DRV.END`
|
||||||
* `>PUSHW DRV.CS.END`
|
* `>PUSHW DRV.CS.END`
|
||||||
@ -451,7 +451,7 @@ BIN.RelDrv ldy #H.BIN.DRV.REL.TABLE
|
|||||||
bcc .3
|
bcc .3
|
||||||
inc ZPPtr1+1 ZPPtr1=Current Code PTR
|
inc ZPPtr1+1 ZPPtr1=Current Code PTR
|
||||||
|
|
||||||
lda BIN.R.CS.End compute new CS.END to stop relocating
|
.3 lda BIN.R.CS.End compute new CS.END to stop relocating
|
||||||
clc
|
clc
|
||||||
adc BIN.R.Offset
|
adc BIN.R.Offset
|
||||||
sta .7+1
|
sta .7+1
|
||||||
@ -460,7 +460,7 @@ BIN.RelDrv ldy #H.BIN.DRV.REL.TABLE
|
|||||||
adc BIN.R.Offset+1
|
adc BIN.R.Offset+1
|
||||||
sta .71+1
|
sta .71+1
|
||||||
|
|
||||||
.3 lda (ZPPtr1) get OPCODE
|
lda (ZPPtr1) get OPCODE
|
||||||
lsr /2
|
lsr /2
|
||||||
tax
|
tax
|
||||||
lda BIN.65816,x get OPCODE definition
|
lda BIN.65816,x get OPCODE definition
|
||||||
|
@ -138,11 +138,11 @@ Kernel.Init3 sta SETALTZP
|
|||||||
>LDYAI MSG.Prefix
|
>LDYAI MSG.Prefix
|
||||||
>SYSCALL printf
|
>SYSCALL printf
|
||||||
|
|
||||||
* lda KBD
|
lda KBD
|
||||||
* bpl .1
|
bpl .1
|
||||||
* sta KBDSTROBE
|
sta KBDSTROBE
|
||||||
* cmp #$84 CTRL-D for Maintenace mode
|
cmp #$84 CTRL-D for Maintenace mode
|
||||||
* bne .1
|
bne .1
|
||||||
|
|
||||||
>LDYAI MSG.MMode
|
>LDYAI MSG.MMode
|
||||||
>SYSCALL printf
|
>SYSCALL printf
|
||||||
|
Loading…
Reference in New Issue
Block a user