aboutsummaryrefslogtreecommitdiff
path: root/basics/README.md
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/README.md
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/README.md')
-rw-r--r--basics/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/basics/README.md b/basics/README.md
new file mode 100644
index 0000000..7571509
--- /dev/null
+++ b/basics/README.md
@@ -0,0 +1,15 @@
+## Basics
+
+Here we have simple programs which try to explain a particular topic of NES
+programming. They are single files which already contain all you need in order
+to have a working program. This means that there is quite a lot of boilerplate
+you might not be aware. For this reason I encourage you to start with the
+`sprite.s` file, which has a step by step explanation on how the NES is
+initialized and what do all these magic "HEADER" and other jargon actually mean.
+Anyhow, these programs are as follows:
+
+- `sprite.s`: detailed explanation on how to initialize the NES in order to have
+ some background and a sprite shown on screen. Follow along the code in order
+ to get a detailed explanation on each section.
+- `input.s`: how to read the input from one controller.
+- `persist.s`: using the MMC1 chip in order to persist data.