mirror of
https://github.com/cc65/cc65.git
synced 2025-01-28 15:31:18 +00:00
Fixed NTSC/PAL issue
git-svn-id: svn://svn.cc65.org/cc65/trunk@2972 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
61238a6c4c
commit
b67169c979
@ -15,7 +15,7 @@
|
|||||||
.macpack generic
|
.macpack generic
|
||||||
|
|
||||||
; Sprite definitions. The first value can be changed to adjust the number
|
; Sprite definitions. The first value can be changed to adjust the number
|
||||||
; of the sprite used for the mouse.
|
; of the sprite used for the mouse. All others depend on this value.
|
||||||
MOUSE_SPR = 0 ; Sprite used for the mouse
|
MOUSE_SPR = 0 ; Sprite used for the mouse
|
||||||
MOUSE_SPR_MASK = $01 .shl MOUSE_SPR ; Positive mask
|
MOUSE_SPR_MASK = $01 .shl MOUSE_SPR ; Positive mask
|
||||||
MOUSE_SPR_NMASK = .lobyte(.not MOUSE_SPR_MASK) ; Negative mask
|
MOUSE_SPR_NMASK = .lobyte(.not MOUSE_SPR_MASK) ; Negative mask
|
||||||
@ -82,14 +82,7 @@ VIC_SPR_Y = (VIC_SPR0_Y + 2*MOUSE_SPR) ; Sprite Y register
|
|||||||
|
|
||||||
.proc movey
|
.proc movey
|
||||||
|
|
||||||
clc
|
add #50 ; Y correction (first visible line)
|
||||||
ldx PALFLAG
|
|
||||||
bne @L1
|
|
||||||
adc #50 ; FIXME: Should be NTSC, is PAL value
|
|
||||||
sta VIC_SPR_Y ; Set Y position
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: adc #50 ; Add PAL correction
|
|
||||||
sta VIC_SPR_Y ; Set Y position
|
sta VIC_SPR_Y ; Set Y position
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user