From 92c2815a9b9d8c1ff127d67d14ba5c1e8a9d250c Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Fri, 24 Nov 2017 14:01:47 -0500 Subject: [PATCH] tfv: move zero pages values to central place also mark some constants as constant --- tfv/tfv_flying.s | 69 ++++++++++++---------------------------------- tfv/tfv_zp.inc | 72 +++++++++++++++++++++++++++++++++++++----------- 2 files changed, 73 insertions(+), 68 deletions(-) diff --git a/tfv/tfv_flying.s b/tfv/tfv_flying.s index e2f700d5..5ae1096a 100644 --- a/tfv/tfv_flying.s +++ b/tfv/tfv_flying.s @@ -1,47 +1,12 @@ -SHIPY EQU $E4 - -; FIXME, sort out available ZP page space -TURNING EQU $60 -SCREEN_X EQU $61 -SCREEN_Y EQU $62 -ANGLE EQU $63 - -HORIZ_SCALE_I EQU $64 -HORIZ_SCALE_F EQU $65 -FACTOR_I EQU $66 -FACTOR_F EQU $67 -DX_I EQU $68 -DX_F EQU $69 -SPACEX_I EQU $6A -SPACEX_F EQU $6B -CX_I EQU $6C -CX_F EQU $6D -DY_I EQU $6E -DY_F EQU $6F -SPACEY_I EQU $70 -SPACEY_F EQU $71 -CY_I EQU $72 -CY_F EQU $73 -TEMP_I EQU $74 -TEMP_F EQU $75 -DISTANCE_I EQU $76 -DISTANCE_F EQU $77 -SPACEZ_I EQU $78 -SPACEZ_F EQU $79 -DRAW_SPLASH EQU $7A -SPEED EQU $7B -SPLASH_COUNT EQU $7C -OVER_WATER EQU $7D - ;=========== ; CONSTANTS ;=========== -SHIPX EQU 15 -TILE_W EQU 64 -TILE_H EQU 64 -MAP_MASK EQU (TILE_W - 1) -LOWRES_W EQU 40 -LOWRES_H EQU 40 +CONST_SHIPX EQU 15 +CONST_TILE_W EQU 64 +CONST_TILE_H EQU 64 +CONST_MAP_MASK EQU (CONST_TILE_W - 1) +CONST_LOWRES_W EQU 40 +CONST_LOWRES_H EQU 40 @@ -242,7 +207,7 @@ landing_loop: sta INH lda #