helloworld-demo

This commit is contained in:
netpipe 2024-02-19 15:49:47 -07:00
parent 3fd78208ba
commit 1ca3d5d9f9
2 changed files with 20 additions and 0 deletions

View File

@ -135,6 +135,8 @@ plasma: plasma.c
$(CL) -t $(SYS) -O -o plasma -m plasma.map plasma.c
nachtm: nachtm.c
$(CL) -t $(SYS) -O -o nachtm -m nachtm.map nachtm.c
hello: hello.s
$(CL) -t $(SYS) -C c64-asm.cfg -u __EXEHDR__ hello.s -o hello.prg
# --------------------------------------------------------------------------
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes

18
samples/cbm/hello.s Normal file
View File

@ -0,0 +1,18 @@
.macpack cbm
start:
lda #14
jsr $ffd2
ldy #0
loop:
lda message,y
beq done
sta $0400,y
iny
bne loop
done:
rts
message:
scrcode "Hello, World!@"