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 lda YPos
iny iny
sta (ptr1),y sta (ptr1),y
lda YPos lda YPos+1
iny iny
sta (ptr1),y sta (ptr1),y

View File

@@ -115,7 +115,7 @@ _mouse_hide:
sei ; Disable interrupts sei ; Disable interrupts
and VIC_SPR_ENA and VIC_SPR_ENA
sta VIC_SPR_ENA ; Disable sprite sta VIC_SPR_ENA ; Disable sprite
cli ; Enable interrupts cli ; Enable interrupts
@L1: inc Invisible ; Set the flag to invisible @L1: inc Invisible ; Set the flag to invisible
rts rts
@@ -158,7 +158,7 @@ _mouse_box:
sta YMax sta YMax
stx YMax+1 ; maxy stx YMax+1 ; maxy
lda (sp),y lda (sp),y
sta XMax sta XMax
iny iny
lda (sp),y lda (sp),y
@@ -201,10 +201,10 @@ _mouse_pos:
lda XPos+1 lda XPos+1
iny iny
sta (ptr1),y sta (ptr1),y
lda YPos lda YPos
iny iny
sta (ptr1),y sta (ptr1),y
lda YPos lda YPos+1
iny iny
sta (ptr1),y sta (ptr1),y
@@ -244,7 +244,7 @@ _mouse_move:
jsr popsreg ; Get X jsr popsreg ; Get X
sei ; Disable interrupts sei ; Disable interrupts
sta YPos sta YPos
stx YPos+1 stx YPos+1
lda sreg lda sreg
ldx sreg+1 ldx sreg+1