2017-11-29 16:28:13 +00:00
|
|
|
|
NEW
|
2018-01-10 16:34:57 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
|
|
|
|
AUTO 4,1
|
2017-11-29 16:28:13 +00:00
|
|
|
|
*--------------------------------------
|
2017-12-04 07:18:24 +00:00
|
|
|
|
UpdateCursor lda CUR.T
|
|
|
|
|
cmp #CUR.T.WAIT
|
|
|
|
|
bcc SetCursor.A.RTS
|
|
|
|
|
inc
|
|
|
|
|
inc
|
|
|
|
|
cmp #CUR.T.WAIT+12
|
|
|
|
|
bne SetCursor.A
|
|
|
|
|
|
|
|
|
|
lda #CUR.T.WAIT
|
|
|
|
|
*--------------------------------------
|
2017-11-30 16:33:33 +00:00
|
|
|
|
* Set X2,Y2,SrcPtr
|
2017-11-29 16:28:13 +00:00
|
|
|
|
*--------------------------------------
|
2017-12-01 06:52:55 +00:00
|
|
|
|
SetCursor.A sta CUR.T
|
|
|
|
|
|
|
|
|
|
lda CUR.bVisible
|
2017-11-30 16:33:33 +00:00
|
|
|
|
bpl .1
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
jsr HideCursor.I
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
|
|
|
|
.1 ldx CUR.T
|
|
|
|
|
|
|
|
|
|
lda L.Cursors,x
|
|
|
|
|
sta CUR.CB+S.CB.SrcPtr
|
|
|
|
|
sta ZPPtr1
|
|
|
|
|
|
|
|
|
|
lda L.Cursors+1,x
|
|
|
|
|
sta CUR.CB+S.CB.SrcPtr+1
|
|
|
|
|
sta ZPPtr1+1
|
|
|
|
|
|
|
|
|
|
ldy #S.BM.W
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta CUR.CB+S.CB.SrcW
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
|
|
|
|
iny
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta CUR.CB+S.CB.SrcW+1
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
|
|
|
|
iny S.BM.H
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta CUR.CB+S.CB.SrcH
|
|
|
|
|
|
2017-11-30 16:33:33 +00:00
|
|
|
|
iny
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
lda (ZPPtr1),y
|
|
|
|
|
sta CUR.CB+S.CB.SrcH+1
|
|
|
|
|
|
2017-11-30 16:33:33 +00:00
|
|
|
|
lda CUR.bVisible
|
2017-12-01 15:53:29 +00:00
|
|
|
|
bmi ShowCursor.I
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
2017-12-04 07:18:24 +00:00
|
|
|
|
SetCursor.A.RTS rts
|
2017-11-29 16:28:13 +00:00
|
|
|
|
*--------------------------------------
|
2017-11-30 16:33:33 +00:00
|
|
|
|
* Set DestX,DestY
|
2017-11-29 16:28:13 +00:00
|
|
|
|
*--------------------------------------
|
2017-12-01 06:52:55 +00:00
|
|
|
|
SetCursorPos >PULLW ZPPtr1
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
|
|
|
|
lda CUR.bVisible
|
|
|
|
|
bpl .1
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
jsr HideCursor.I
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
.1 ldy #S.POINT-1
|
2017-11-29 16:28:13 +00:00
|
|
|
|
|
2017-11-30 16:33:33 +00:00
|
|
|
|
.2 lda (ZPPtr1),y
|
|
|
|
|
sta CUR.Pos,y
|
|
|
|
|
dey
|
|
|
|
|
bpl .2
|
|
|
|
|
|
|
|
|
|
lda CUR.bVisible
|
2017-12-01 15:53:29 +00:00
|
|
|
|
bmi ShowCursor.I
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
2017-11-29 16:28:13 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2017-11-30 16:33:33 +00:00
|
|
|
|
HideCursor lda CUR.bVisible
|
|
|
|
|
bpl .9
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
jsr HideCursor.I
|
2017-11-30 16:33:33 +00:00
|
|
|
|
|
|
|
|
|
stz CUR.bVisible
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
ShowCursor lda CUR.bVisible
|
|
|
|
|
bmi .9
|
|
|
|
|
|
2017-12-01 15:53:29 +00:00
|
|
|
|
jsr ShowCursor.I
|
|
|
|
|
|
|
|
|
|
dec CUR.bVisible
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
HideCursor.I lda #S.CB.OP.RESTORE
|
2017-11-30 16:33:33 +00:00
|
|
|
|
sta CUR.CB+S.CB.OP
|
2017-12-04 07:18:24 +00:00
|
|
|
|
bra DrawCursor.I
|
2017-12-01 15:53:29 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
ShowCursor.I lda #S.CB.OP.ORA+S.CB.OP.MASK+S.CB.OP.SAVE
|
|
|
|
|
sta CUR.CB+S.CB.OP
|
|
|
|
|
|
|
|
|
|
ldx CUR.T
|
|
|
|
|
|
|
|
|
|
lda CUR.Pos+S.POINT.X
|
|
|
|
|
sec
|
|
|
|
|
sbc CUR.HotPoints,x
|
2017-12-05 16:33:06 +00:00
|
|
|
|
sta CUR.CB+S.CB.DstX
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
|
|
|
|
lda CUR.Pos+S.POINT.X+1
|
|
|
|
|
sbc #0
|
2017-12-05 16:33:06 +00:00
|
|
|
|
sta CUR.CB+S.CB.DstX+1
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
|
|
|
|
lda CUR.Pos+S.POINT.Y
|
|
|
|
|
sec
|
|
|
|
|
sbc CUR.HotPoints+1,x
|
2017-12-05 16:33:06 +00:00
|
|
|
|
sta CUR.CB+S.CB.DstY
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
|
|
|
|
lda CUR.Pos+S.POINT.Y+1
|
|
|
|
|
sbc #0
|
2017-12-05 16:33:06 +00:00
|
|
|
|
sta CUR.CB+S.CB.DstY+1
|
2017-12-01 15:53:29 +00:00
|
|
|
|
|
2017-12-05 16:33:06 +00:00
|
|
|
|
DrawCursor.I >LDYA L.GC.Screen
|
2017-12-04 16:42:08 +00:00
|
|
|
|
jsr GC.Get
|
|
|
|
|
|
|
|
|
|
>LDYA L.CUR.CB
|
2017-12-04 07:18:24 +00:00
|
|
|
|
jsr CLIP.YA
|
|
|
|
|
bcs .9
|
2017-12-04 16:42:08 +00:00
|
|
|
|
|
2017-12-14 16:25:03 +00:00
|
|
|
|
jmp GoDevGfx
|
2017-12-04 07:18:24 +00:00
|
|
|
|
|
|
|
|
|
.9 rts
|
2017-11-30 16:33:33 +00:00
|
|
|
|
*--------------------------------------
|
2017-11-29 16:28:13 +00:00
|
|
|
|
MAN
|
|
|
|
|
SAVE /A2OSX.SRC/LIB/LIBGUI.S.CUR
|
|
|
|
|
LOAD /A2OSX.SRC/LIB/LIBGUI.S
|
|
|
|
|
ASM
|