1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-27 19:55:09 +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:
cuz 2001-09-08 15:51:05 +00:00
parent d6569bc230
commit 4e3fcec239
2 changed files with 8 additions and 8 deletions

View File

@ -204,7 +204,7 @@ _mouse_pos:
lda YPos
iny
sta (ptr1),y
lda YPos
lda YPos+1
iny
sta (ptr1),y

View File

@ -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