Minor update by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3746 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -59,6 +59,7 @@ CMOVEY: jmp $0000 ; Move the cursor to Y coord
|
||||
|
||||
.bss
|
||||
|
||||
info: .tag MOUSE_INFO
|
||||
slot: .res 1
|
||||
visible:.res 1
|
||||
|
||||
@@ -82,10 +83,6 @@ size = * - values
|
||||
|
||||
.data
|
||||
|
||||
info: .word 279 / 2 ; MOUSE_INFO::MOUSE_POS::XCOORD
|
||||
.word 191 / 2 ; MOUSE_INFO::MOUSE_POS::YCOORD
|
||||
.byte %00000000 ; MOUSE_INFO::BUTTONS
|
||||
|
||||
firmware:
|
||||
; Lookup and patch firmware address lobyte
|
||||
lookup: ldy $FF00,x ; Patched at runtime
|
||||
@@ -192,6 +189,9 @@ next: inc ptr1+1
|
||||
ldx #POSMOUSE
|
||||
jsr firmware
|
||||
|
||||
; Update cursor
|
||||
jsr update
|
||||
|
||||
; Turn VBL interrupt on
|
||||
lda #%00001001
|
||||
ldx #SETMOUSE
|
||||
|
||||
Reference in New Issue
Block a user