Kernel 0.9.2

This commit is contained in:
Rémy GIBERT 2018-07-20 07:43:11 +02:00
parent 42d37dbaf2
commit 2ecedf2c3c
11 changed files with 41 additions and 42 deletions

View File

@ -12,18 +12,18 @@ CS : Out Of Bound
# LoadDrv
##ASM
## ASM
**In:**
Y,A = PTR to "NAME.DRV [PARAM]" C-String
**Out:**
none
#InsDrv
# InsDrv
##C
## C
`void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
##ASM
## ASM
**In:**
`>PUSHW DRV.END`
`>PUSHW DRV.CS.END`

Binary file not shown.

Binary file not shown.

View File

@ -45,7 +45,7 @@ CS.RUN lda #1
>STA.G hFullPath
pla
ply
>SYSCALL MKDir.YA
>SYSCALL MKDir
bcs .9
lda #0

View File

@ -38,7 +38,6 @@ Dev.Detect >LDYA L.MSG.DETECT
>PUSHWI DRV.CS.END
>PUSHWI DRV.CS.START
>LDYA L.DRV.CS.START
>DEBUG
>SYSCALL InsDrv
bcs .9
>STYA FD.DEV+S.FD.DEV.DRVPTR
@ -173,7 +172,7 @@ CONTROL sta SETTEXT
CLOSE lda #S.DIB.S.OPENED
trb DIB+S.DIB.S
stz A2osX.SCRNDEVS+1
stz A2osX.SCRNDEVS
clc
rts
*--------------------------------------
@ -996,7 +995,6 @@ DIB .DA #S.DIB.S.WRITE+S.DIB.S.READ
>PSTR "ANSI 80c Console"
.DA #S.DIB.T.CHAR
.DA #0
.DA #0
.DA KVER
*--------------------------------------
DRV.END

View File

@ -290,6 +290,7 @@ S.MSTAT .EQ 24
* IOCTL device API
*--------------------------------------
C.EOF .EQ 4
C.DEL .EQ 127
*--------------------------------------
DEVID.NULL .EQ 0
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.DISKII .EQ $10
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.CHAR .EQ $14
S.DIB.T.GFX .EQ $15

View File

@ -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!**
@ -237,10 +237,10 @@ OApple+1,OApple+2,OApple+3 to switch between screens : Kernel Log, text, DHGR.
| Name | Status | Comment | K.Ver |
| ---- | ------ | ------- | ------|
| INSDRV | Working | | 0.9.1 |
| GETTY | Working | | 0.9.1 |
| LOGIN | In Progress | no auth using /etc/passd yet | 0.9.1 |
| SHELL | Working | (See Internal Shell commands) | 0.9.1 |
| INSDRV | Working | | 0.92 |
| GETTY | Working | | 0.92 |
| LOGIN | In Progress | no auth using /etc/passd yet | 0.92 |
| SHELL | Working | (See Internal Shell commands) | 0.92 |
| KCONFIG | Working | Kernel Configuration Utility | 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 |
| ---- | ------ | ------- | ----- |
| 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.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 |
@ -300,10 +300,10 @@ note : '$VAR' does NOT expand Variable
## BIN,External Shell commands:
| 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 |
| LSDEV | Working | | 0.9.1 |
| PS | Working | | 0.9.1 |
| MD | Working | | 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.92 |
| PS | Working | | 0.92 |
| MD | Working | | 0.92 |
| LS | Working | -A : Do Not Print . & .. | 0.9.1 |
| | | -L : long listing with size/date... | |
| | | -R : Recurse subdirectories | |
@ -318,7 +318,7 @@ note : '$VAR' does NOT expand Variable
| | | -Q : Quiet | |
| | | -R : Recurse subdirectories | |
| | | -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 | |
| | | -S : Suppress repeated empty output lines | |
| 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 |
| | | -1..9 : Catalog Size (block count) | |
| 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 |
| ---- | ------ | ------- | ----- |
| ARP | Working | dump ARP cache, setup a static ARP entry | 0.9.1 |

View File

@ -66,7 +66,7 @@ CS.INIT clc
rts
*--------------------------------------
CS.RUN >LDYA L.FILENAME
>SYSCALL ExpandStr.YA
>SYSCALL ExpandStr
txa
>STA.G hFileName
@ -200,7 +200,7 @@ CS.RUN.Load >PUSHEA.G StatBuf
rts
.99 >LDYAI 16
>SYSCALL GetMem0.YA
>SYSCALL GetMem0
>STYA ZPCfgPtr
@ -238,13 +238,13 @@ CS.RUN.Save >PUSHWI 0 AUXTYPE
tax
pla
phx
>SYSCALL FClose.A
>SYSCALL FClose
pla
sec
rts
.1 pla
>SYSCALL FClose.A
>SYSCALL FClose
.9 rts
*--------------------------------------

View File

@ -4,10 +4,10 @@ AUTO 4,1
.LIST OFF
.OP 65C02
.OR $2000
.TF /A2OSX.BUILD/SBIN/LOGIN
.TF SBIN/LOGIN
*--------------------------------------
.INB /A2OSX.BUILD/INC/MACROS.I
.INB /A2OSX.BUILD/INC/A2OSX.I
.INB INC/MACROS.I
.INB INC/A2OSX.I
*--------------------------------------
ZPPTR1 .EQ ZPBIN
*--------------------------------------

View File

@ -2,7 +2,7 @@ NEW
PREFIX /A2OSX.BUILD
AUTO 4,1
*--------------------------------------
* K.LoadLib
* LoadLib
* in :
* Y,A = PTR To "LibName.o" C-String
* out :
@ -35,7 +35,7 @@ K.LoadLib jsr BIN.FindLIB
sec
rts
*--------------------------------------
* K.UnloadLib
* UnloadLib
* in :
* A = hMem To Lib
* out :
@ -66,7 +66,7 @@ K.UnloadLib pha
jmp K.FreeMem
*/--------------------------------------
* # LoadDrv
* ##ASM
* ## ASM
* **In:**
* Y,A = PTR to "NAME.DRV [PARAM]" C-String
* **Out:**
@ -280,10 +280,10 @@ BIN.Load.1 >PUSHWI K.S.STAT
BIN.CmdLine .BS 2
BIN.hMem .BS 1
*/--------------------------------------
* #InsDrv
* ##C
* # InsDrv
* ## C
* `void * insdrv (void * src, void * crvcsstart, void * drvcsend, void * drvend);`
* ##ASM
* ## ASM
* **In:**
* `>PUSHW DRV.END`
* `>PUSHW DRV.CS.END`
@ -450,8 +450,8 @@ BIN.RelDrv ldy #H.BIN.DRV.REL.TABLE
sta ZPPtr1
bcc .3
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
adc BIN.R.Offset
sta .7+1
@ -460,7 +460,7 @@ BIN.RelDrv ldy #H.BIN.DRV.REL.TABLE
adc BIN.R.Offset+1
sta .71+1
.3 lda (ZPPtr1) get OPCODE
lda (ZPPtr1) get OPCODE
lsr /2
tax
lda BIN.65816,x get OPCODE definition

View File

@ -138,11 +138,11 @@ Kernel.Init3 sta SETALTZP
>LDYAI MSG.Prefix
>SYSCALL printf
* lda KBD
* bpl .1
* sta KBDSTROBE
* cmp #$84 CTRL-D for Maintenace mode
* bne .1
lda KBD
bpl .1
sta KBDSTROBE
cmp #$84 CTRL-D for Maintenace mode
bne .1
>LDYAI MSG.MMode
>SYSCALL printf