diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-09 00:33:04 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-10 13:32:44 +0200 |
| commit | 1978afbc18ffb227f0ce36663648e00d1d2d7945 (patch) | |
| tree | 10584b63468ca718be84a40ef2c34ef99cb75924 /Makefile | |
| parent | 21a599651c07ee021d0f211ba45add538acd0f4a (diff) | |
| download | code.nes-1978afbc18ffb227f0ce36663648e00d1d2d7945.tar.gz code.nes-1978afbc18ffb227f0ce36663648e00d1d2d7945.zip | |
Add the sound/beep.s example
This is the most simple example you can come up when it comes to
producing sound on the NES/Famicom. Basically, a single note is
delivered to the APU which is continuously on.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -18,14 +18,14 @@ clean: @rm -rf out @find . -type f -name "*.o" -delete @find . -type f -name "*.nes" -delete - @mkdir -p out/basics out/scroll out/space out/fx out/rand + @mkdir -p out/basics out/scroll out/space out/fx out/rand out/sound .PHONY: deps deps: @which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false) .PHONY: build -build: basics space scroll fx rand +build: basics space scroll sound fx rand .PHONY: basics basics: @@ -69,6 +69,11 @@ scroll: $(E) " CC scroll/roulette" $(Q) $(CC65) $(CCOPTS) scroll/roulette.s -C config/mmc3.cfg -o out/scroll/roulette.nes +.PHONY: sound +sound: + $(E) " CC sound/beep" + $(Q) $(CC65) $(CCOPTS) sound/beep.s -C config/nrom.cfg -o out/sound/beep.nes + .PHONY: fx fx: $(E) " CC fx/blink" |
