diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-21 19:41:29 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-21 19:41:29 +0100 |
| commit | 0eab42133afe1749043db2f1ea6075bf449d1916 (patch) | |
| tree | 20030063ef56a6e243d733bcc28a18989df17798 /README.md | |
| parent | 9e22faffffa20aa256a05468157404006e2e4d1e (diff) | |
| download | list.nes-0eab42133afe1749043db2f1ea6075bf449d1916.tar.gz list.nes-0eab42133afe1749043db2f1ea6075bf449d1916.zip | |
Polished the README file
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -144,7 +144,8 @@ LIST_IT_FROM $0400 This way you don't have to care about pointers or anything: just set where you want to start iterating your list, and call `List::get` until `y` has an `$FF` -value. +value. Note though that, because of the implicit pointer arithmetic, the carry +flag and others might have been updated after you have called this function. ### Setting values without growing the list @@ -190,11 +191,15 @@ LIST_IT_FROM $0400 ;; move on... ``` +Finally, keep in mind that this function, besides updating the `a` and the `y` +registers, will also update the carry flag. + ### Putting it all together You can check out an example in the [examples/mul.s](./examples/mul.s) file. Otherwise you can also see it being used in real life on my solution for [day 4 -of Advent of Code](https://github.com/mssola/aoc2023.nes/blob/main/src/4.s). +of Advent of Code +2023](https://github.com/mssola/aoc2023.nes/blob/main/src/4.s). ## License |
