From cb706c6a5465940b4fbaa2dcdcfedcdf9c01438a Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Sat, 23 May 2026 09:11:14 +0200 Subject: [PATCH] deps --- .vscode/tasks.json | 6 ++++++ Makefile | 14 +++++++++++++- main.asm | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b9778b6..9de1d66 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,6 +1,12 @@ { "version": "2.0.0", "tasks": [ + { + "label": "deps", + "type": "shell", + "command": "make deps", + "problemMatcher": [] + }, { "label": "build", "type": "shell", diff --git a/Makefile b/Makefile index 950e5ee..e712094 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,19 @@ EMU = x64sc SRC = main.asm TARGET = main.prg -.PHONY: build run clear rebuild rebuildrun +UNAME_S := $(shell uname -s) + +.PHONY: build run clear rebuild rebuildrun deps + +deps: +ifeq ($(UNAME_S),Darwin) + @command -v brew >/dev/null 2>&1 || { echo "Homebrew kell ehhez. Telepitsd: https://brew.sh"; exit 1; } + brew install acme vice +else + @echo "A 'deps' target csak macOS-en (Darwin) automatikus. Detektalt OS: $(UNAME_S)" + @echo "Telepitsd kezzel: acme assembler + VICE emulator (x64sc)." + @exit 1 +endif build: $(TARGET) diff --git a/main.asm b/main.asm index 41153e3..4f3f4f0 100644 --- a/main.asm +++ b/main.asm @@ -56,7 +56,7 @@ delay_inner: jmp color_loop message: - !text "main, COMMODORE 64!" + !text "HELLO, COMMODORE 64!" !byte 13, 13 !text "TELETYPE GAMES DEMO" !byte 13, 0