aboutsummaryrefslogtreecommitdiff
path: root/basics/persist.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-11-01 09:20:03 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-04 20:59:14 +0100
commit988332816972638adfa8000dd7e1a474c5fea424 (patch)
tree9f5589df5652ce9f8b40b681cbe1b78a7a020646 /basics/persist.s
parentc22ea7b25d8949f1c6266208eeb027d0350a54a7 (diff)
downloadcode.nes-988332816972638adfa8000dd7e1a474c5fea424.tar.gz
code.nes-988332816972638adfa8000dd7e1a474c5fea424.zip
basics: Improve documentation
Add more comments to `sprite.s` and `persist.s` so they can be read by a newcomer, and also introduce a README for this directory. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'basics/persist.s')
-rw-r--r--basics/persist.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/basics/persist.s b/basics/persist.s
index 1dcfa29..392797f 100644
--- a/basics/persist.s
+++ b/basics/persist.s
@@ -103,10 +103,10 @@ reset_mmc1:
;; That's why it did not really matter what we had at the iNES
;; header: mirroring is programmatically set, not
;; hardware-bound.
- ;; - bit 2: we have two regions: $8000-$BFFF and $C000-$FFFF. This bit
- ;; configures which one of them is fixed and which can be
- ;; swapped. We set this bit to one, meaning that $8000-$BFFF is
- ;; swappable while the other is fixed to the last bank of PRG.
+ ;; - bit 2: we have two regions (see bit 3): $8000-$BFFF and $C000-$FFFF.
+ ;; This bit configures which one of them is fixed and which can
+ ;; be swapped. We set this bit to one, meaning that $8000-$BFFF
+ ;; is swappable while the other is fixed to the last bank of PRG.
;; - bit 3: swappable PRG size. If set to 0, then 32KB of memory is
;; assumed, and thus bit 2 is ignored (i.e. the whole thing is to
;; be swapped at once). Otherwise, if set to 1, then 16KB is