From 988332816972638adfa8000dd7e1a474c5fea424 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 1 Nov 2023 09:20:03 +0100 Subject: basics: Improve documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- basics/persist.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'basics/persist.s') 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 -- cgit v1.2.3