From 4ab02c0f132e7eb37108b101f1797dd6de2d316b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 10 Feb 2025 10:38:01 +0100 Subject: Clarified the select pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3