From bc87587330e9265b23861d0f763fdb1612e5f632 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 22 Sep 2023 14:05:19 +0200 Subject: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the basic structure and the first example: managing controller input. Signed-off-by: Miquel Sabaté Solà --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee108fe --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +

+ Build Status for main branch + License GPL 3 +

+ +--- + +This repository consists of some examples on programs for the NES. You can build +them by just calling `make`. Before doing that, though, you will need a compiler +for the 6052 platform. A good option is [cc65](https://github.com/cc65/cc65), +which is available on all major platforms. Otherwise, if you want to use another +compiler, you can pass the `CC65` and `CCOPTS` variables to the Makefile. Either +way, the resulting ROMs will be placed in the `out` directory. + +After that, it's recommended that you run the ROMs with an emulator with +debugging support or at least some form of memory visualization. This is because +some examples have nothing to show for other than updating some values on the +NES memory. A safe bet is to go with [fceux](https://fceux.com/web/home.html), +which works on all major platforms and provides tools like RAM watchers or a +full debugger. + +All that being said, for now I have written the following examples: + +- `examples/input.s`: it reads the input from the first controller and it + increments a counter stored in memory for each press of the right arrow + button. + +## License + +Released under the [GPLv3+](http://www.gnu.org/licenses/gpl-3.0.txt), Copyright +(C) 2023-Ω Miquel Sabaté Solà. + +There are some files which I have taken from other people (e.g. +`examples/wrapper.s`). Take a look at each file for the specifics. -- cgit v1.2.3