aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/globals.s6
-rw-r--r--include/ppu.s4
2 files changed, 7 insertions, 3 deletions
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