mirror of https://github.com/cc65/cc65.git
helloworld-demo
This commit is contained in:
parent
3fd78208ba
commit
1ca3d5d9f9
|
@ -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
|
||||
|
|
|
@ -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!@"
|
Loading…
Reference in New Issue