From 74b1003ab8abad2f8220de4f2f18a3b118f23f01 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 10 Dec 2025 14:41:35 +0100 Subject: Adapt the code to play well with nasm's asan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The address sanitizer from nasm provides quite a few goodies, so let's adapt the code more to it to benefit from those. Signed-off-by: Miquel Sabaté Solà --- src/jetpac.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jetpac.s') diff --git a/src/jetpac.s b/src/jetpac.s index 6708ed3..6e74d53 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -50,7 +50,7 @@ .proc main ;; Disable the PPU and zero out variables which shadow PPU registers. lda #0 - sta PPU::MASK + sta PPU::m_mask sta PPU::zp_mask sta PPU::zp_control @@ -89,13 +89,13 @@ jsr Driver::switch lda PPU::zp_control - sta PPU::CONTROL + sta PPU::m_control .else jsr Title::init lda #%10001000 sta PPU::zp_control - sta PPU::CONTROL + sta PPU::m_control .endif cli @@ -103,7 +103,7 @@ ;; Enable back the PPU lda #%00011110 sta PPU::zp_mask - sta PPU::MASK + sta PPU::m_mask @main_game_loop: READ_JOYPAD1 -- cgit v1.2.3