Makefile.inc, like the other compile-time options. Small fix in the
P/M mouse "show" routine: adapt mouse cursor colors to current
screen colors.
# Disabled by default, you should enable it if the linker script relocates the
# character generator (like atarixl-largehimem.cfg).
#CA65FLAGS += -D CHARGEN_RELOC -D USEWSYNC
+
+# Disable if you don't want to use page 6 for mouse P/M data.
+# If disabled, top of the RAM is used for P/M data.
+CA65FLAGS += -D USE_PAGE6
; be called from an interrupt handler
;
-USE_PAGE6 = 1
-
.include "atari.inc"
.importzp sp
.export _mouse_pm_callbacks
; number of the P/M used for the mouse. All others depend on this value.
; Valid P/M numbers are 0 to 4. When 4 is used, the missiles are used
; as a player.
-.if USE_PAGE6
+.ifdef USE_PAGE6
MOUSE_PM_NUM = 2 ; P/M used for the mouse
; This cannot be changed since only player #2 uses the memory at $600.
.else
lda #1
.endif
sta GRACTL
- ;rts ; optimized out
+ jmp update_colors
prep:
draw:
pm_init:
lda #0
-.if USE_PAGE6
+.ifdef USE_PAGE6
sta MOUSE_PM_BASE
ldx #6 ; page 6
iny
bne @iniloo
-.if ! USE_PAGE6
+.ifndef USE_PAGE6
lda MOUSE_PM_BASE+1
and #$F8
.endif