mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33:00 +00:00
Fixed an error in mouse_pos
git-svn-id: svn://svn.cc65.org/cc65/trunk@873 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d6569bc230
commit
4e3fcec239
@ -204,7 +204,7 @@ _mouse_pos:
|
||||
lda YPos
|
||||
iny
|
||||
sta (ptr1),y
|
||||
lda YPos
|
||||
lda YPos+1
|
||||
iny
|
||||
sta (ptr1),y
|
||||
|
||||
|
@ -115,7 +115,7 @@ _mouse_hide:
|
||||
sei ; Disable interrupts
|
||||
and VIC_SPR_ENA
|
||||
sta VIC_SPR_ENA ; Disable sprite
|
||||
cli ; Enable interrupts
|
||||
cli ; Enable interrupts
|
||||
|
||||
@L1: inc Invisible ; Set the flag to invisible
|
||||
rts
|
||||
@ -158,7 +158,7 @@ _mouse_box:
|
||||
sta YMax
|
||||
stx YMax+1 ; maxy
|
||||
|
||||
lda (sp),y
|
||||
lda (sp),y
|
||||
sta XMax
|
||||
iny
|
||||
lda (sp),y
|
||||
@ -201,10 +201,10 @@ _mouse_pos:
|
||||
lda XPos+1
|
||||
iny
|
||||
sta (ptr1),y
|
||||
lda YPos
|
||||
iny
|
||||
sta (ptr1),y
|
||||
lda YPos
|
||||
lda YPos
|
||||
iny
|
||||
sta (ptr1),y
|
||||
lda YPos+1
|
||||
iny
|
||||
sta (ptr1),y
|
||||
|
||||
@ -244,7 +244,7 @@ _mouse_move:
|
||||
jsr popsreg ; Get X
|
||||
sei ; Disable interrupts
|
||||
|
||||
sta YPos
|
||||
sta YPos
|
||||
stx YPos+1
|
||||
lda sreg
|
||||
ldx sreg+1
|
||||
|
Loading…
x
Reference in New Issue
Block a user