diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index e09177a..0000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(brew list *)", - "Bash(brew search *)", - "Bash(brew info *)" - ] - } -} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15b5fdc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.claude +*.prg diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b9778b6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,39 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "make build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "run", + "type": "shell", + "command": "make run", + "problemMatcher": [] + }, + { + "label": "clear", + "type": "shell", + "command": "make clear", + "problemMatcher": [] + }, + { + "label": "rebuild", + "type": "shell", + "command": "make rebuild", + "problemMatcher": [] + }, + { + "label": "rebuildrun", + "type": "shell", + "command": "make rebuildrun", + "problemMatcher": [] + } + ] +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..950e5ee --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +ASM = acme +EMU = x64sc +SRC = main.asm +TARGET = main.prg + +.PHONY: build run clear rebuild rebuildrun + +build: $(TARGET) + +$(TARGET): $(SRC) + $(ASM) -f cbm -o $(TARGET) $(SRC) + +run: build + $(EMU) $(TARGET) + +clear: + rm -f $(TARGET) + +rebuild: clear build + +rebuildrun: clear build run diff --git a/hello.prg b/hello.prg deleted file mode 100644 index e859812..0000000 Binary files a/hello.prg and /dev/null differ diff --git a/hello.asm b/main.asm similarity index 86% rename from hello.asm rename to main.asm index 2cbe82b..41153e3 100644 --- a/hello.asm +++ b/main.asm @@ -1,9 +1,9 @@ ; ----------------------------------------------------------- -; hello.asm - C64 demo: szoveg kiiratas + keret villogtatas -; Forditas: acme -f cbm -o hello.prg hello.asm +; main.asm - C64 demo: szoveg kiiratas + keret villogtatas +; Forditas: acme -f cbm -o main.prg main.asm ; ----------------------------------------------------------- -!to "hello.prg", cbm +!to "main.prg", cbm * = $0801 @@ -56,7 +56,7 @@ delay_inner: jmp color_loop message: - !text "HELLO, COMMODORE 64!" + !text "main, COMMODORE 64!" !byte 13, 13 - !text "UDV TASI - JO PROGRAMOZAST!" + !text "TELETYPE GAMES DEMO" !byte 13, 0