From 4c8ed456d990ee99884e9dcd245f665ccb894b50 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 19 Mar 2025 17:28:36 +0100 Subject: Disable the PPU between the title to main screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During other transitions like game over and such it might also be needed to have something similar, but for now this should cut it. Signed-off-by: Miquel Sabaté Solà --- include/globals.s | 6 +++--- include/ppu.s | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/globals.s b/include/globals.s index f4e4861..35665f7 100644 --- a/include/globals.s +++ b/include/globals.s @@ -1,8 +1,7 @@ ;; Global variables used throughout the code base. .scope Globals ;;; - ;; Argument values as defined in https://github.com/mssola/style.nes. Note - ;; that these variables can also be used as temporary variables. + ;; Argument values reserved passing arguments to functions in memory. zp_arg0 = $00 zp_arg1 = $01 zp_arg2 = $02 @@ -30,7 +29,8 @@ ;; |-----+------------+-------------------------------------------------------------| ;; | 7 | render | Game logic is over, block main code until NMI code is over. | ;; | 6 | ppu | PPU registers have to be touched | - ;; | 5-2 | - | Unused | + ;; | 5-3 | - | Unused | + ;; | 2 | title over | We are transitioning from title to game | ;; | 1-0 | game | 0: title; 1: game; 2: game over, 3: game over (coin) | zp_flags = $20 .endscope diff --git a/include/ppu.s b/include/ppu.s index dd24422..a9c0ed2 100644 --- a/include/ppu.s +++ b/include/ppu.s @@ -9,4 +9,8 @@ ;; Shadow for the PPU::CONTROL value. Touch this value instead of accessing ;; the PPU register directly. zp_control = $80 + + ;; Shadow for the PPU::MASK value. Touch this value instead of accessing the + ;; PPU register directly. + zp_mask = $81 .endscope -- cgit v1.2.3