From 428c301a80641361f51af8102628b545cf9ae63e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 11 Mar 2025 17:00:47 +0100 Subject: shared: Bring joypad into a proper style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Put functions inside of the scope, avoid useless fallthroughs and be more realistic on what is needed from elsewhere. Signed-off-by: Miquel Sabaté Solà --- shared/diskun.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/diskun.s') diff --git a/shared/diskun.s b/shared/diskun.s index 8349748..ffe8028 100644 --- a/shared/diskun.s +++ b/shared/diskun.s @@ -41,7 +41,7 @@ .proc update lda #Joypad::BUTTON_UP - and Joypad::m_buttons1 + and Joypad::zp_buttons1 beq @check_down dec Diskun::m_screen_y @@ -49,21 +49,21 @@ jmp @check_left @check_down: lda #Joypad::BUTTON_DOWN - and Joypad::m_buttons1 + and Joypad::zp_buttons1 beq @check_left inc Diskun::m_screen_y inc Diskun::m_screen_y @check_left: lda #Joypad::BUTTON_LEFT - and Joypad::m_buttons1 + and Joypad::zp_buttons1 beq @check_right dec Diskun::m_screen_x dec Diskun::m_screen_x @check_right: lda #Joypad::BUTTON_RIGHT - and Joypad::m_buttons1 + and Joypad::zp_buttons1 beq @end inc Diskun::m_screen_x -- cgit v1.2.3