Kernel 0.93+

This commit is contained in:
Rémy GIBERT 2019-09-07 08:41:17 +02:00
parent 237ba85627
commit 9251e05c0f
8 changed files with 31 additions and 16 deletions

Binary file not shown.

View File

@ -403,12 +403,10 @@ CORE.ArgV.Dup >STYA ZPPtr1
>STYA ZPPtr2
lda #$ff Arg count-1 (skip $0)
pha
phx
ldx #$ff Arg count-1 (skip $0)
.5 pla
inc
pha
.5 inx
jsr StrCpyPtr1Ptr2
tya
@ -418,7 +416,9 @@ CORE.ArgV.Dup >STYA ZPPtr1
jsr AddYp1Ptr1
bra .5
.8 pla A = Arg count, X = hARGV
.8 txa A = Arg count, X = hARGV
plx
clc
.9 rts
*--------------------------------------

View File

@ -13,7 +13,7 @@ NEW
.INB INC/GFX.I
.INB INC/GFX.EVE.I
*--------------------------------------
ZPPtr .EQ ZPDRV
ZPPtr .EQ ZPBIN
*--------------------------------------
* File Header (16 Bytes)
*--------------------------------------

View File

@ -12,7 +12,8 @@ NEW
.INB INC/NIC.91C96.I
.INB INC/ETH.I
*--------------------------------------
ZPArgPtr .EQ ZPDRV
ZPArgPtr .EQ ZPBIN
DEVSLOT0x .EQ ZPBIN+2
*--------------------------------------
* File Header (16 Bytes)
*--------------------------------------
@ -74,8 +75,7 @@ Dev.Detect >STYA ARGS
rts
.3 stx DEVSLOTx0
lda #A2osX.S.NIC
sta A2osX.S,y
sty DEVSLOT0x
jsr Dev.ParseArgs
bcs .9
@ -96,7 +96,13 @@ Dev.Detect >STYA ARGS
>PUSHW L.FD.DEV.NAME
>LDYA L.FD.DEV
>SYSCALL MKDEV
bcs .9
ldx DEVSLOT0x
lda #A2osX.S.NIC
sta A2osX.S,x
* clc
.9 rts
*--------------------------------------
Dev.ParseArgs >LDYA ARGS

View File

@ -13,7 +13,7 @@ AUTO 4,1
.INB INC/XY.MOUSE.I
.INB INC/LIBGUI.I
*--------------------------------------
ZPSlotPtr .EQ ZPDRV
ZPSlotPtr .EQ ZPBIN
*--------------------------------------
* File Header (16 Bytes)
*--------------------------------------

View File

@ -12,8 +12,8 @@ NEW
.INB INC/NIC.8900A.I
.INB INC/ETH.I
*--------------------------------------
ZPArgPtr .EQ ZPDRV
DEVSLOT0x .EQ ZPDRV+2
ZPArgPtr .EQ ZPBIN
DEVSLOT0x .EQ ZPBIN+2
*--------------------------------------
* File Header (16 Bytes)
*--------------------------------------

View File

@ -9,7 +9,8 @@ NEW
.TF DRV/UTHERNET2.DRV
.FIN
*--------------------------------------
ZPArgPtr .EQ ZPDRV
ZPArgPtr .EQ ZPBIN
DEVSLOT0x .EQ ZPBIN+2
*--------------------------------------
* File Header (16 Bytes)
*--------------------------------------
@ -94,6 +95,7 @@ Dev.Detect >STYA ARGS
rts
.3 stx DEVSLOTx0
sty DEVSLOT0x
lda #A2osX.S.NIC
sta A2osX.S,y
@ -116,7 +118,13 @@ Dev.Detect >STYA ARGS
>PUSHW L.FD.DEV.NAME
>LDYA L.FD.DEV
>SYSCALL MKDEV
bcs .9
ldx DEVSLOT0x
lda #A2osX.S.NIC
sta A2osX.S,x
* clc
.9 rts
*--------------------------------------
Dev.ParseArgs >LDYA ARGS

View File

@ -216,6 +216,7 @@ CS.INIT.CONF >LDYAI 64
CS.RUN >PUSHW L.IOCTL
>PUSHBI IOCTL.READ
lda DevID
>SYSCALL IOCTL
bcs .8 No Frame