From 9021354ca65e70e1a3ad15063587ea150b0a73a3 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Sat, 23 May 2026 08:54:29 +0200 Subject: [PATCH] initial commit --- .claude/settings.local.json | 9 ++++++ hello.asm | 62 ++++++++++++++++++++++++++++++++++++ hello.prg | Bin 0 -> 118 bytes 3 files changed, 71 insertions(+) create mode 100644 .claude/settings.local.json create mode 100644 hello.asm create mode 100644 hello.prg diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..e09177a --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,9 @@ +{ + "permissions": { + "allow": [ + "Bash(brew list *)", + "Bash(brew search *)", + "Bash(brew info *)" + ] + } +} diff --git a/hello.asm b/hello.asm new file mode 100644 index 0000000..2cbe82b --- /dev/null +++ b/hello.asm @@ -0,0 +1,62 @@ +; ----------------------------------------------------------- +; hello.asm - C64 demo: szoveg kiiratas + keret villogtatas +; Forditas: acme -f cbm -o hello.prg hello.asm +; ----------------------------------------------------------- + +!to "hello.prg", cbm + +* = $0801 + +; ---- BASIC stub: 10 SYS 2064 ---- +; igy a LOAD"*",8,1 utan eleg RUN-t irni +!byte $0c, $08 ; kovetkezo sor cime +!byte $0a, $00 ; sorszam: 10 +!byte $9e ; SYS token +!byte $20, $32, $30, $36, $34 ; " 2064" +!byte $00 ; sor vege +!byte $00, $00 ; program vege + +* = $0810 ; = 2064 decimalisan + +; ---- KERNAL rutinok ---- +CHROUT = $ffd2 ; karakter kiiras +BORDER = $d020 ; keret szin regiszter +BG = $d021 ; hatter szin regiszter + +start: + lda #14 ; vilagoskek hatter + sta BG + lda #6 ; sotetkek keret + sta BORDER + + lda #$93 ; CLR/HOME - kepernyo torles + jsr CHROUT + lda #$05 ; feher karakter szin + jsr CHROUT + + ldx #0 +print_loop: + lda message,x + beq color_loop ; ha 0 -> kesz a szoveg + jsr CHROUT + inx + jmp print_loop + +; vegtelen szinvillogtato +color_loop: + inc BORDER ; novelje a keret szinet + ldy #0 +delay_outer: + ldx #0 +delay_inner: + dex + bne delay_inner + dey + bne delay_outer + jmp color_loop + +message: + !text "HELLO, COMMODORE 64!" + !byte 13, 13 + !text "UDV TASI - JO PROGRAMOZAST!" + !byte 13, 0 diff --git a/hello.prg b/hello.prg new file mode 100644 index 0000000000000000000000000000000000000000..e859812c954ec1f2068781212eba0c733b477300 GIT binary patch literal 118 zcmZSN;Njq6n5ST5U}nMq0xS7?6)&u0>s7e0awr zE-YYJ#Bl1u-;N7Ee2h3eTz!1}brhWaeSQ61{DWK-%uEz{c|%>o6ha(>Jr#5ny!;gc Sg8bcs9DV(x9D_p?c^Lp(w