mirror of
https://github.com/A2osX/A2osX.git
synced 2024-07-07 04:28:56 +00:00
Kernel 0.92
This commit is contained in:
parent
2304529422
commit
1b66ead5df
Binary file not shown.
@ -119,7 +119,6 @@ FD.DEV.NAME .AZ "MOU7"
|
|||||||
* Driver Code
|
* Driver Code
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
ZPIOCTL .EQ ZPDRV
|
ZPIOCTL .EQ ZPDRV
|
||||||
ZPTmpPtr1 .EQ ZPDRV+2
|
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DRV.CS.START cld
|
DRV.CS.START cld
|
||||||
jmp (.1,x)
|
jmp (.1,x)
|
||||||
@ -133,14 +132,43 @@ DRV.CS.START cld
|
|||||||
.DA CLOSE
|
.DA CLOSE
|
||||||
.DA A2osX.BADCALL
|
.DA A2osX.BADCALL
|
||||||
.DA A2osX.BADCALL
|
.DA A2osX.BADCALL
|
||||||
L.DEVSTAT .DA DEVSTAT
|
|
||||||
.DA 0 end or relocation
|
.DA 0 end or relocation
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
STATUS >LDYA L.DEVSTAT
|
STATUS >STYA ZPIOCTL
|
||||||
|
|
||||||
|
ldy #S.IOCTL.STATCODE
|
||||||
|
lda (ZPIOCTL),y
|
||||||
|
beq .1
|
||||||
|
|
||||||
|
cmp #S.IOCTL.STATCODE.GETDIB
|
||||||
|
bne STATUS.DCB
|
||||||
|
|
||||||
|
ldx #S.DIB-1
|
||||||
|
.HS 2C bit abs
|
||||||
|
.1 ldx #3
|
||||||
|
|
||||||
|
ldy #S.IOCTL.BUFPTR
|
||||||
|
lda (ZPIOCTL),y
|
||||||
|
sta .3+1
|
||||||
|
iny
|
||||||
|
lda (ZPIOCTL),y
|
||||||
|
sta .3+2
|
||||||
|
|
||||||
|
.2 lda DIB,x
|
||||||
|
.3 sta $ffff,x SELF MODIFIED
|
||||||
|
dex
|
||||||
|
bpl .2
|
||||||
|
|
||||||
clc
|
clc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
STATUS.DCB
|
||||||
|
|
||||||
|
STATUS.9 lda #MLI.E.BADCTL
|
||||||
|
sec
|
||||||
|
rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
READBLOCK >STYA ZPTmpPtr1
|
READBLOCK >STYA ZPIOCTL
|
||||||
|
|
||||||
stz READBLOCK.S+1 Reset Flags
|
stz READBLOCK.S+1 Reset Flags
|
||||||
|
|
||||||
@ -159,19 +187,19 @@ READBLOCK >STYA ZPTmpPtr1
|
|||||||
ldy #S.MOUSE.X1
|
ldy #S.MOUSE.X1
|
||||||
|
|
||||||
lda MOUSEXLOx,x
|
lda MOUSEXLOx,x
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda MOUSEXHIx,x
|
lda MOUSEXHIx,x
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda MOUSEYLOx,x
|
lda MOUSEYLOx,x
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda MOUSEYHIx,x
|
lda MOUSEYHIx,x
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
|
|
||||||
lda #S.MOUSE.S.MOVE
|
lda #S.MOUSE.S.MOVE
|
||||||
tsb READBLOCK.S+1
|
tsb READBLOCK.S+1
|
||||||
@ -236,7 +264,7 @@ READBLOCK >STYA ZPTmpPtr1
|
|||||||
ldy #S.MOUSE.X2+3
|
ldy #S.MOUSE.X2+3
|
||||||
|
|
||||||
.5 lda SrcDrag-S.MOUSE.X2,y
|
.5 lda SrcDrag-S.MOUSE.X2,y
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
dey
|
dey
|
||||||
bpl .5
|
bpl .5
|
||||||
|
|
||||||
@ -246,7 +274,7 @@ READBLOCK.S lda #$ff SELF MODIFIED
|
|||||||
beq .9
|
beq .9
|
||||||
|
|
||||||
ldy #S.MOUSE.S
|
ldy #S.MOUSE.S
|
||||||
sta (ZPTmpPtr1),y
|
sta (ZPIOCTL),y
|
||||||
clc
|
clc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@ -254,7 +282,7 @@ READBLOCK.S lda #$ff SELF MODIFIED
|
|||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
CONTROL >STYA ZPTmpPtr1
|
CONTROL >STYA ZPIOCTL
|
||||||
|
|
||||||
php
|
php
|
||||||
sei
|
sei
|
||||||
@ -305,19 +333,19 @@ CLOSE php
|
|||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
* PRIVATE
|
* PRIVATE
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
SETCLAMP lda (ZPTmpPtr1),y
|
SETCLAMP lda (ZPIOCTL),y
|
||||||
sta LOCLAMPLO
|
sta LOCLAMPLO
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda (ZPTmpPtr1),y
|
lda (ZPIOCTL),y
|
||||||
sta LOCLAMPHI
|
sta LOCLAMPHI
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda (ZPTmpPtr1),y
|
lda (ZPIOCTL),y
|
||||||
sta HICLAMPLO
|
sta HICLAMPLO
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda (ZPTmpPtr1),y
|
lda (ZPIOCTL),y
|
||||||
sta HICLAMPHI
|
sta HICLAMPHI
|
||||||
|
|
||||||
txa
|
txa
|
||||||
@ -334,14 +362,13 @@ DEVSLOT0n .BS 1
|
|||||||
bDblClick .BS 1
|
bDblClick .BS 1
|
||||||
SrcDrag .BS 4
|
SrcDrag .BS 4
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DEVSTAT .DA #0
|
DIB .DA #0
|
||||||
.DA #0,#0,#0
|
.DA #0,#0,#0
|
||||||
>PSTR "Apple II Mouse"
|
>PSTR "Apple II Mouse"
|
||||||
.BS 2
|
.BS 2
|
||||||
.DA #S.DIB.T.XY
|
.DA #S.DIB.T.XY
|
||||||
.DA #0
|
.DA #0
|
||||||
.DA #0
|
.DA K.VER
|
||||||
.DA #91
|
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
DRV.END
|
DRV.END
|
||||||
MAN
|
MAN
|
||||||
|
@ -185,7 +185,6 @@ DRV.CS.START cld
|
|||||||
.DA CLOSE
|
.DA CLOSE
|
||||||
.DA READ
|
.DA READ
|
||||||
.DA WRITE
|
.DA WRITE
|
||||||
.DA A2osX.BADCALL IRQ
|
|
||||||
.DA 0 end or relocation
|
.DA 0 end or relocation
|
||||||
*--------------------------------------
|
*--------------------------------------
|
||||||
STATUS >STYA ZPIOCTL
|
STATUS >STYA ZPIOCTL
|
||||||
|
@ -476,7 +476,7 @@ K.NewStr >STYA .1+1
|
|||||||
|
|
||||||
.8 pla
|
.8 pla
|
||||||
ply
|
ply
|
||||||
clc
|
* clc
|
||||||
.9 rts
|
.9 rts
|
||||||
*/--------------------------------------
|
*/--------------------------------------
|
||||||
* # SListGetByID
|
* # SListGetByID
|
||||||
|
@ -343,7 +343,7 @@ PS.LoadBIN.YA jsr BIN.Load
|
|||||||
bcs .9
|
bcs .9
|
||||||
|
|
||||||
ldy #S.PS.ZP.STACK+1
|
ldy #S.PS.ZP.STACK+1
|
||||||
sta (ZPPtr3),y save pStack HI...(LO alredy set to Stack TOP)
|
sta (ZPPtr3),y save pStack HI...(LO already set to Stack TOP)
|
||||||
|
|
||||||
txa
|
txa
|
||||||
ldy #S.PS.hSS
|
ldy #S.PS.hSS
|
||||||
|
Loading…
Reference in New Issue
Block a user