From ff47b013fbdde4a28ea7b58239cceeca85172e0b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 29 Sep 2026 22:19:51 +0200 Subject: asm: add an example on detecting software IRQs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3