aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-09-29 22:19:51 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-09-29 22:19:51 +0200
commitff47b013fbdde4a28ea7b58239cceeca85172e0b (patch)
treef958f011119768b69e4682d93d58add0ffcc20fa /Makefile
parent7af0538816193be7c88c76a556b908bedf1585df (diff)
downloadcode.nes-main.tar.gz
code.nes-main.zip
asm: add an example on detecting software IRQsHEADmain
This is all prone to errors and probably a bad idea on production, but it was a fun exercise with 6502 assembly. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8acdb7f..afb4280 100644
--- a/Makefile
+++ b/Makefile
@@ -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 out/sound
+ @mkdir -p out/basics out/scroll out/space out/fx out/rand out/sound out/asm
.PHONY: deps
deps:
@which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false)
.PHONY: build
-build: basics space scroll sound fx rand
+build: basics space scroll sound fx rand asm
.PHONY: basics
basics:
@@ -89,3 +89,8 @@ fx:
rand:
$(E) " CC rand/rand"
$(Q) $(CC65) $(CCOPTS) rand/rand.s -C config/nrom.cfg -o out/rand/rand.nes
+
+.PHONY: asm
+asm:
+ $(E) " CC asm/soft_irq"
+ $(Q) $(CC65) $(CCOPTS) asm/soft_irq.s -C config/nrom.cfg -o out/asm/soft_irq.nes