diff --git a/samples/cbm/Makefile b/samples/cbm/Makefile index 03387a061..df48f4766 100644 --- a/samples/cbm/Makefile +++ b/samples/cbm/Makefile @@ -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 diff --git a/samples/cbm/hello.s b/samples/cbm/hello.s new file mode 100644 index 000000000..9263d4c73 --- /dev/null +++ b/samples/cbm/hello.s @@ -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!@"