From e50190685001d5dc48703428b101ac5c39510de8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Mar 2026 00:52:52 +0100 Subject: Use specific variables for cached player's tile coordinates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit we were using the zp_argX variables, but this can go wrong, and more so considering other functions like background collision checking also use these variables. All in all, since we have plenty of RAM to spare, let's just allocate a new set of bytes just for that. Signed-off-by: Miquel Sabaté Solà --- .nasm/memory.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.nasm/memory.txt') diff --git a/.nasm/memory.txt b/.nasm/memory.txt index 23ba954..1e5caad 100644 --- a/.nasm/memory.txt +++ b/.nasm/memory.txt @@ -34,9 +34,11 @@ $37: zp_next_enemy_cycle $38: zp_flags $40: zp_screen_y $41-$42: zp_position_y +$43: zp_player_tile_y $44: zp_velocity_y $45: zp_screen_x $46-$47: zp_position_x +$48: zp_player_tile_x $49: zp_velocity_x $50: zp_state $51: zp_walk_counter @@ -77,4 +79,4 @@ $4016: m_joypad $4017: m_frame_counter --- Summary (in bytes) --- -- Internal RAM: 415/2048 (20.26%) +- Internal RAM: 417/2048 (20.36%) -- cgit v1.2.3