tfv: fix ca65 complaints about negative constants

This commit is contained in:
Vince Weaver 2021-01-20 16:38:44 -05:00
parent b44775d3eb
commit 78cb19fe7a
4 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ all:
cd mode7_demo && make
cd seasons && make
cd shapetable_party && make
cd vertical_scroll && make
# cd vertical_scroll && make
cd xmas_2018 && make
cd xmas_2019 && make

View File

@ -1,7 +1,7 @@
include ../../Makefile.inc
include ../../../Makefile.inc
PNG2RLE = ../../gr-utils/png2rle
PNG2LZ4 = ../../gr-utils/png2lz4
PNG2RLE = ../../../utils/gr-utils/png2rle
PNG2LZ4 = ../../../utils/gr-utils/png2lz4
all: ootw_c16_end.inc logo.inc

View File

@ -93,7 +93,7 @@ rotozoom:
; cca = -20*ca;
lda #-20 ; 2
lda #<(-20) ; 2
sta NUM1H ; 3
lda #0 ; 2
sta NUM1L ; 3

View File

@ -98,8 +98,8 @@ worldmap_handle_left:
left_turn:
lda HERO_STATE
and #~HERO_DIRECTION ; change direction to left (0)
and #~HERO_ODD ; stand (not walk) if changing
and #<(~HERO_DIRECTION) ; change direction to left (0)
and #<(~HERO_ODD) ; stand (not walk) if changing
sta HERO_STATE
jmp done_handle_left ; skip ahead
@ -120,7 +120,7 @@ worldmap_handle_right:
right_turn:
lda HERO_STATE
ora #HERO_DIRECTION ; change direction to right (1)
and #~HERO_ODD ; change to standing
and #<(~HERO_ODD) ; change to standing
sta HERO_STATE
jmp done_handle_right ; skip ahead