diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-02-10 10:38:01 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-02-10 10:38:01 +0100 |
| commit | 4ab02c0f132e7eb37108b101f1797dd6de2d316b (patch) | |
| tree | b7240a36ce14f114b335cbf1560ba04079e53aec /README.md | |
| parent | efcf72fa8d546070995254253753d7ab7b2dcce1 (diff) | |
| download | style.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.md | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |
