2015-03-17 22:05:33 +00:00
|
|
|
|
NEW
|
2020-09-01 15:38:55 +00:00
|
|
|
|
AUTO 3,1
|
2015-03-17 22:05:33 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
2019-12-04 06:56:03 +00:00
|
|
|
|
.TF drv/mouse.drv
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2020-07-02 15:40:42 +00:00
|
|
|
|
.INB inc/macros.i
|
|
|
|
|
.INB inc/a2osx.i
|
|
|
|
|
.INB inc/io.i
|
|
|
|
|
.INB inc/mli.e.i
|
2022-10-09 21:22:46 +00:00
|
|
|
|
.INB inc/xy.i
|
2020-07-02 15:40:42 +00:00
|
|
|
|
.INB inc/xy.mouse.i
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2019-09-07 06:41:17 +00:00
|
|
|
|
ZPSlotPtr .EQ ZPBIN
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
* File Header (16 Bytes)
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.START cld
|
2015-06-03 18:30:57 +00:00
|
|
|
|
jmp Dev.Detect cld,jmp abs=DRV
|
|
|
|
|
.DA #$61 6502,Level 1 (65c02)
|
|
|
|
|
.DA #1 DRV Layout Version 1
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA CS.END-CS.START Code Length
|
2018-12-17 16:39:46 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2015-06-03 18:30:57 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Relocation Table
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
L.MSG.DETECT .DA MSG.DETECT
|
|
|
|
|
L.MSG.DETECT.OK .DA MSG.DETECT.OK
|
|
|
|
|
L.MSG.DETECT.KO .DA MSG.DETECT.KO
|
2018-12-18 07:31:32 +00:00
|
|
|
|
L.DRV.CS.START .DA DRV.CS.START
|
|
|
|
|
L.FD.DEV .DA FD.DEV
|
|
|
|
|
L.FD.DEV.NAME .DA FD.DEV.NAME
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.DA 0 End Of Reloc Table
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
Dev.Detect >LDYA L.MSG.DETECT
|
2020-07-02 15:40:42 +00:00
|
|
|
|
>SYSCALL PutS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
|
2018-12-17 16:39:46 +00:00
|
|
|
|
stz ZPSlotPtr
|
2015-03-17 22:05:33 +00:00
|
|
|
|
lda #$C1
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-17 16:39:46 +00:00
|
|
|
|
.1 sta ZPSlotPtr+1
|
2018-05-07 06:13:07 +00:00
|
|
|
|
ldx #DEVSIG.Value-DEVSIG.Offset-1
|
2015-03-17 22:05:33 +00:00
|
|
|
|
|
|
|
|
|
.2 ldy DEVSIG.Offset,x
|
2018-12-17 16:39:46 +00:00
|
|
|
|
lda (ZPSlotPtr),y
|
2015-03-17 22:05:33 +00:00
|
|
|
|
cmp DEVSIG.Value,x
|
2015-03-23 07:28:03 +00:00
|
|
|
|
bne .3
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
2015-03-23 07:28:03 +00:00
|
|
|
|
dex
|
|
|
|
|
bpl .2
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
2018-12-18 07:31:32 +00:00
|
|
|
|
bra .8
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
2018-12-18 07:31:32 +00:00
|
|
|
|
.3 lda ZPSlotPtr+1 no match, try next slot....
|
|
|
|
|
inc
|
|
|
|
|
cmp #$C8
|
|
|
|
|
bne .1
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
2018-12-18 07:31:32 +00:00
|
|
|
|
>LDYA L.MSG.DETECT.KO
|
2020-07-02 15:40:42 +00:00
|
|
|
|
>SYSCALL PutS
|
2018-12-18 07:31:32 +00:00
|
|
|
|
|
|
|
|
|
.9 lda #MLI.E.NODEV
|
|
|
|
|
sec
|
|
|
|
|
rts
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
2018-12-18 07:31:32 +00:00
|
|
|
|
.8 lda ZPSlotPtr+1
|
2020-09-05 13:38:04 +00:00
|
|
|
|
sta GOMOUSE.LDX+2
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta GOMOUSE.JMP+2
|
2015-03-17 22:05:33 +00:00
|
|
|
|
and #$0F
|
2015-03-23 07:28:03 +00:00
|
|
|
|
sta DEVSLOT0n
|
2015-03-17 22:05:33 +00:00
|
|
|
|
ora #$30
|
2018-12-17 16:39:46 +00:00
|
|
|
|
sta FD.DEV.NAME+3
|
2015-03-17 22:05:33 +00:00
|
|
|
|
asl
|
|
|
|
|
asl
|
|
|
|
|
asl
|
|
|
|
|
asl
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta GOMOUSE.n0+1
|
2020-07-02 15:40:42 +00:00
|
|
|
|
|
|
|
|
|
>PUSHW L.MSG.DETECT.OK
|
2018-12-18 07:31:32 +00:00
|
|
|
|
>PUSHW L.FD.DEV.NAME
|
|
|
|
|
>PUSHBI 2
|
2020-02-28 07:21:46 +00:00
|
|
|
|
>SYSCALL PrintF
|
2018-12-17 16:39:46 +00:00
|
|
|
|
|
|
|
|
|
>PUSHWI DRV.END
|
2019-07-22 06:31:01 +00:00
|
|
|
|
>PUSHWI DRV.CS.END-DRV.CS.START
|
2018-12-17 16:39:46 +00:00
|
|
|
|
>PUSHWI DRV.CS.START
|
|
|
|
|
>LDYA L.DRV.CS.START
|
|
|
|
|
>SYSCALL InsDrv
|
2020-07-20 15:19:32 +00:00
|
|
|
|
bcs .99
|
2020-03-16 06:50:15 +00:00
|
|
|
|
|
2018-12-17 16:39:46 +00:00
|
|
|
|
>STYA FD.DEV+S.FD.DEV.DRVPTR
|
2020-03-16 06:50:15 +00:00
|
|
|
|
|
|
|
|
|
>PUSHW L.FD.DEV
|
2018-12-17 16:39:46 +00:00
|
|
|
|
>PUSHW L.FD.DEV.NAME
|
2020-08-25 14:54:30 +00:00
|
|
|
|
>SYSCALL MKDev
|
2018-12-17 16:39:46 +00:00
|
|
|
|
|
2020-07-20 15:19:32 +00:00
|
|
|
|
.99 rts
|
2015-06-03 18:30:57 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.END
|
2022-10-09 21:22:46 +00:00
|
|
|
|
MSG.DETECT .CZ "Apple Mouse Driver."
|
|
|
|
|
MSG.DETECT.OK .CZ "Mouse Installed As Device : %s\r\n"
|
|
|
|
|
MSG.DETECT.KO .CZ "No Mouse Found."
|
2016-06-07 06:10:18 +00:00
|
|
|
|
DEVSIG.Offset .HS 05070B0CFB
|
|
|
|
|
DEVSIG.Value .HS 38180120D6
|
2015-06-03 18:30:57 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-17 16:39:46 +00:00
|
|
|
|
FD.DEV .DA #S.FD.T.CDEV
|
|
|
|
|
.DA #0 HANDLER
|
|
|
|
|
.DA #0 BUSID
|
|
|
|
|
.DA #0 DEVID
|
|
|
|
|
.DA 0 BUSPTR
|
|
|
|
|
.BS 2 DRVPTR
|
|
|
|
|
.DA 0 DCBPTR
|
|
|
|
|
.DA 0 BUFPTR
|
2020-09-05 13:38:04 +00:00
|
|
|
|
FD.DEV.NAME .AZ "mou1"
|
2015-06-03 18:30:57 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Driver Code
|
|
|
|
|
*--------------------------------------
|
2018-12-17 16:39:46 +00:00
|
|
|
|
ZPIOCTL .EQ ZPDRV
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ZPBufPtr .EQ ZPDRV+2
|
2018-12-17 16:39:46 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-18 07:31:32 +00:00
|
|
|
|
DRV.CS.START cld
|
|
|
|
|
jmp (.1,x)
|
|
|
|
|
.1 .DA STATUS
|
2018-12-20 16:23:43 +00:00
|
|
|
|
.DA A2osX.BADCALL
|
2017-07-01 13:45:53 +00:00
|
|
|
|
.DA A2osX.BADCALL
|
|
|
|
|
.DA A2osX.BADCALL
|
2017-06-02 15:14:42 +00:00
|
|
|
|
.DA CONTROL
|
2017-07-01 13:45:53 +00:00
|
|
|
|
.DA A2osX.BADCALL
|
2017-01-27 16:26:09 +00:00
|
|
|
|
.DA OPEN
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.DA CLOSE
|
2018-12-20 16:23:43 +00:00
|
|
|
|
.DA READ
|
2017-07-01 13:45:53 +00:00
|
|
|
|
.DA A2osX.BADCALL
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.DA 0 end or relocation
|
|
|
|
|
*--------------------------------------
|
2019-01-08 16:29:26 +00:00
|
|
|
|
STATUS >STYA ZPIOCTL
|
|
|
|
|
|
|
|
|
|
ldy #S.IOCTL.BUFPTR
|
|
|
|
|
lda (ZPIOCTL),y
|
|
|
|
|
sta ZPBufPtr
|
|
|
|
|
iny
|
|
|
|
|
lda (ZPIOCTL),y
|
|
|
|
|
sta ZPBufPtr+1
|
2018-12-18 16:46:31 +00:00
|
|
|
|
|
2021-05-04 17:31:21 +00:00
|
|
|
|
ldy #S.IOCTL.S
|
2018-12-18 16:46:31 +00:00
|
|
|
|
lda (ZPIOCTL),y
|
|
|
|
|
beq .1
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2021-05-04 17:31:21 +00:00
|
|
|
|
cmp #S.IOCTL.S.GETDIB
|
2018-12-18 16:46:31 +00:00
|
|
|
|
bne STATUS.DCB
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ldy #S.DIB-1
|
2018-12-18 16:46:31 +00:00
|
|
|
|
.HS 2C bit abs
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
.1 ldy #3
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
.2 lda DIB,y
|
|
|
|
|
sta (ZPBufPtr),y
|
|
|
|
|
dey
|
2018-12-18 16:46:31 +00:00
|
|
|
|
bpl .2
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-01-27 16:26:09 +00:00
|
|
|
|
clc
|
|
|
|
|
rts
|
2018-12-18 16:46:31 +00:00
|
|
|
|
|
|
|
|
|
STATUS.DCB
|
|
|
|
|
STATUS.9 lda #MLI.E.BADCTL
|
|
|
|
|
sec
|
2018-12-19 07:12:58 +00:00
|
|
|
|
rts
|
2017-01-27 16:26:09 +00:00
|
|
|
|
*--------------------------------------
|
2019-01-08 16:29:26 +00:00
|
|
|
|
CONTROL >STYA ZPBufPtr NON STANDARD
|
2017-02-06 17:04:03 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
php
|
|
|
|
|
sei
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ldy #0
|
|
|
|
|
ldx #0 set X
|
|
|
|
|
jsr SETCLAMP
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ldy #4
|
|
|
|
|
ldx #1 set Y
|
|
|
|
|
jsr SETCLAMP
|
|
|
|
|
|
2020-09-01 15:38:55 +00:00
|
|
|
|
ldy #HOMEMOUSE
|
2020-09-05 13:38:04 +00:00
|
|
|
|
bra EXIT1
|
2018-12-20 16:23:43 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
OPEN php
|
|
|
|
|
sei
|
2020-09-05 13:38:04 +00:00
|
|
|
|
|
2020-09-01 15:38:55 +00:00
|
|
|
|
lda #S.DIB.S.OPENED
|
|
|
|
|
tsb DIB+S.DIB.S
|
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ldx DEVSLOT0n
|
|
|
|
|
lda MOUSEMODx,x keep if VBLInt already activated by kernel
|
|
|
|
|
and #MOUSEMODx.INTVBL
|
|
|
|
|
ora #MOUSEMODx.ACTIVE Enable, Polling mode
|
2020-09-05 13:38:04 +00:00
|
|
|
|
bra EXIT0
|
|
|
|
|
|
|
|
|
|
* jsr GOMOUSE
|
2018-12-20 16:23:43 +00:00
|
|
|
|
|
2020-09-05 13:38:04 +00:00
|
|
|
|
* ldy #INITMOUSE Already called by IRQManager
|
|
|
|
|
* jsr GOMOUSE CLEAR $2000-3FFF AND MESS SETHIRES
|
|
|
|
|
* plp
|
|
|
|
|
* rts
|
2018-12-20 16:23:43 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CLOSE php
|
|
|
|
|
sei
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
|
|
|
|
lda #S.DIB.S.OPENED
|
|
|
|
|
trb DIB+S.DIB.S
|
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
ldx DEVSLOT0n
|
|
|
|
|
lda MOUSEMODx,x keep if VBLInt already activated by kernel
|
|
|
|
|
and #MOUSEMODx.INTVBL Disable ALL but VBLInt if previously active
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2020-09-05 13:38:04 +00:00
|
|
|
|
EXIT0 ldy #SETMOUSE
|
|
|
|
|
|
|
|
|
|
EXIT1 jsr GOMOUSE
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
plp
|
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2019-01-08 16:29:26 +00:00
|
|
|
|
READ >STYA ZPBufPtr NON STANDARD
|
2018-12-20 16:23:43 +00:00
|
|
|
|
|
|
|
|
|
stz READ.S+1 Reset Flags
|
2015-03-23 07:28:03 +00:00
|
|
|
|
|
2017-06-02 15:14:42 +00:00
|
|
|
|
php
|
2015-03-23 07:28:03 +00:00
|
|
|
|
sei
|
2020-09-05 13:38:04 +00:00
|
|
|
|
|
2019-01-10 16:26:58 +00:00
|
|
|
|
sta CLRPAGE2
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-06-02 15:14:42 +00:00
|
|
|
|
* ldy #READMOUSE DONE BY IRQ MANAGER
|
|
|
|
|
* jsr GOMOUSE
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2015-03-23 07:28:03 +00:00
|
|
|
|
ldx DEVSLOT0n
|
|
|
|
|
lda MOUSESTSx,x
|
|
|
|
|
and #MOUSESTSx.MOVED
|
2017-11-28 16:32:38 +00:00
|
|
|
|
beq .1
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
ldy #S.XY.X1
|
2017-06-02 15:14:42 +00:00
|
|
|
|
|
|
|
|
|
lda MOUSEXLOx,x
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2017-06-02 15:14:42 +00:00
|
|
|
|
iny
|
2015-03-23 07:28:03 +00:00
|
|
|
|
lda MOUSEXHIx,x
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2017-06-02 15:14:42 +00:00
|
|
|
|
iny
|
2015-03-23 07:28:03 +00:00
|
|
|
|
lda MOUSEYLOx,x
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2017-06-02 15:14:42 +00:00
|
|
|
|
iny
|
2015-03-23 07:28:03 +00:00
|
|
|
|
lda MOUSEYHIx,x
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
lda #S.XY.S.MOVE
|
2018-12-20 16:23:43 +00:00
|
|
|
|
tsb READ.S+1
|
2017-11-28 16:32:38 +00:00
|
|
|
|
stz bDblClick Reset DblClick flag
|
2019-10-03 06:25:27 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
.1 lda MOUSESTSx,x
|
|
|
|
|
and #MOUSESTSx.DOWN+MOUSESTSx.LDOWN
|
|
|
|
|
beq .8 no button state change:up & previously up
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
cmp #MOUSESTSx.DOWN+MOUSESTSx.LDOWN
|
|
|
|
|
beq .8 no button state change:down & previously down
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
asl if CS, down & previously up
|
|
|
|
|
bcc .2
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
lda #S.XY.S.DOWN
|
2018-12-20 16:23:43 +00:00
|
|
|
|
tsb READ.S+1 button has been pressed, start drag...
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
lda MOUSEXLOx,x
|
|
|
|
|
sta SrcDrag
|
|
|
|
|
lda MOUSEXHIx,x
|
|
|
|
|
sta SrcDrag+1
|
|
|
|
|
lda MOUSEYLOx,x
|
|
|
|
|
sta SrcDrag+2
|
|
|
|
|
lda MOUSEYHIx,x
|
|
|
|
|
sta SrcDrag+3
|
|
|
|
|
bra .8
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
.2 lda READ.S+1
|
2017-12-01 15:53:29 +00:00
|
|
|
|
pha save move state
|
2022-10-09 21:22:46 +00:00
|
|
|
|
ora #S.XY.S.UP
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta READ.S+1
|
2017-12-01 15:53:29 +00:00
|
|
|
|
pla get back move state
|
2017-11-28 16:32:38 +00:00
|
|
|
|
bne .4 no move...click!
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
lda #S.XY.S.CLK
|
2017-11-28 16:32:38 +00:00
|
|
|
|
bit bDblClick
|
2017-12-01 15:53:29 +00:00
|
|
|
|
bpl .3
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
lda #S.XY.S.DCLK
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
ldy #1
|
|
|
|
|
sty bDblClick
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
.3 dec bDblClick
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
tsb READ.S+1
|
2017-11-28 16:32:38 +00:00
|
|
|
|
bra .8
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
.4 lda #S.XY.S.DRAGSTART
|
2018-12-20 16:23:43 +00:00
|
|
|
|
tsb READ.S+1
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
ldy #S.XY.X2+3
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
.5 lda SrcDrag-S.XY.X2,y
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2017-12-01 15:53:29 +00:00
|
|
|
|
dey
|
|
|
|
|
bpl .5
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2017-11-28 16:32:38 +00:00
|
|
|
|
.8 plp
|
|
|
|
|
|
2018-12-20 16:23:43 +00:00
|
|
|
|
READ.S lda #$ff SELF MODIFIED
|
2015-03-23 07:28:03 +00:00
|
|
|
|
beq .9
|
2018-05-07 06:13:07 +00:00
|
|
|
|
|
2022-10-09 21:22:46 +00:00
|
|
|
|
ldy #S.XY.S
|
2018-12-20 16:23:43 +00:00
|
|
|
|
sta (ZPBufPtr),y
|
2015-03-23 07:28:03 +00:00
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
|
2017-10-26 16:01:54 +00:00
|
|
|
|
.9 lda #MLI.E.EOF
|
2015-11-22 22:30:06 +00:00
|
|
|
|
sec
|
2019-10-03 06:25:27 +00:00
|
|
|
|
rts
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-20 16:23:43 +00:00
|
|
|
|
* PRIVATE
|
2017-06-02 15:14:42 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-20 16:23:43 +00:00
|
|
|
|
SETCLAMP lda (ZPBufPtr),y
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta LOCLAMPLO
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-05-07 06:13:07 +00:00
|
|
|
|
iny
|
2018-12-20 16:23:43 +00:00
|
|
|
|
lda (ZPBufPtr),y
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta LOCLAMPHI
|
|
|
|
|
|
|
|
|
|
iny
|
2018-12-20 16:23:43 +00:00
|
|
|
|
lda (ZPBufPtr),y
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta HICLAMPLO
|
|
|
|
|
|
|
|
|
|
iny
|
2018-12-20 16:23:43 +00:00
|
|
|
|
lda (ZPBufPtr),y
|
2018-05-07 06:13:07 +00:00
|
|
|
|
sta HICLAMPHI
|
2020-09-01 15:38:55 +00:00
|
|
|
|
|
2018-05-07 06:13:07 +00:00
|
|
|
|
txa
|
|
|
|
|
ldy #CLAMPMOUSE
|
|
|
|
|
*--------------------------------------
|
2020-09-05 13:38:04 +00:00
|
|
|
|
GOMOUSE
|
|
|
|
|
GOMOUSE.LDX ldx $C100,y SELF MODIFIED
|
2018-05-07 06:13:07 +00:00
|
|
|
|
stx GOMOUSE.JMP+1
|
2020-09-05 13:38:04 +00:00
|
|
|
|
ldx GOMOUSE.JMP+2
|
|
|
|
|
GOMOUSE.n0 ldy #$10 SELF MODIFIED
|
|
|
|
|
GOMOUSE.JMP jmp $C100 SELF MODIFIED
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
DRV.CS.END
|
2015-03-23 07:28:03 +00:00
|
|
|
|
DEVSLOT0n .BS 1
|
2017-11-28 16:32:38 +00:00
|
|
|
|
bDblClick .BS 1
|
|
|
|
|
SrcDrag .BS 4
|
2015-03-17 22:05:33 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-18 16:46:31 +00:00
|
|
|
|
DIB .DA #0
|
2018-05-07 06:13:07 +00:00
|
|
|
|
.DA #0,#0,#0
|
2022-10-09 21:22:46 +00:00
|
|
|
|
.PS "Apple II Mouse"
|
2017-01-27 16:26:09 +00:00
|
|
|
|
.BS 2
|
2018-07-19 15:33:55 +00:00
|
|
|
|
.DA #S.DIB.T.XY
|
2017-01-27 16:26:09 +00:00
|
|
|
|
.DA #0
|
2022-10-09 21:22:46 +00:00
|
|
|
|
.DA #0,#94
|
2017-01-27 16:26:09 +00:00
|
|
|
|
*--------------------------------------
|
2018-12-18 07:31:32 +00:00
|
|
|
|
DRV.END
|
2020-09-01 15:38:55 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.LIST ON
|
|
|
|
|
DRV.CS.SIZE .EQ DRV.CS.END-DRV.CS.START
|
|
|
|
|
DRV.SIZE .EQ DRV.END-DRV.CS.START
|
|
|
|
|
.LIST OFF
|
2015-03-17 22:05:33 +00:00
|
|
|
|
MAN
|
2020-07-02 15:40:42 +00:00
|
|
|
|
SAVE usr/src/drv/mouse.drv.s
|
2015-03-17 22:05:33 +00:00
|
|
|
|
ASM
|