aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-10 10:38:01 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-10 10:38:01 +0100
commit4ab02c0f132e7eb37108b101f1797dd6de2d316b (patch)
treeb7240a36ce14f114b335cbf1560ba04079e53aec /README.md
parentefcf72fa8d546070995254253753d7ab7b2dcce1 (diff)
downloadstyle.nes-4ab02c0f132e7eb37108b101f1797dd6de2d316b.tar.gz
style.nes-4ab02c0f132e7eb37108b101f1797dd6de2d316b.zip
Clarified the select pattern
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index f57193d..47f6a91 100644
--- a/README.md
+++ b/README.md
@@ -387,11 +387,12 @@ jsr read_controller_x
```
Reading from one controller or the other is the same but the `x` register can be
-used to select which controller to read. Similarly, use the `x` or the `y`
-registers as a "select" for the function's code. This pattern can also be
-reproduced in functions that perform bank switching, for example, as a way to
-index the bank to be selected. This can be further documented by adding a suffix
-into the function's name, as it's done in the above example.
+used to select which controller to read. In general, this is a pattern in which
+the `x` or the `y` registers are used as a "select" for the function's code.
+This pattern can also be reproduced in functions that perform bank switching,
+for example, as a way to index the bank to be selected. This can be further
+documented by adding a suffix into the function's name, as it's done in the
+above example.
## Memory arguments first, optimize with registers later