mirror of
https://github.com/cc65/cc65.git
synced 2024-06-01 13:41:34 +00:00
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
|
$(CL) -t $(SYS) -O -o plasma -m plasma.map plasma.c
|
||||||
nachtm: nachtm.c
|
nachtm: nachtm.c
|
||||||
$(CL) -t $(SYS) -O -o nachtm -m nachtm.map 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
|
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
||||||
|
|
18
samples/cbm/hello.s
Normal file
18
samples/cbm/hello.s
Normal 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!@"
|
Loading…
Reference in New Issue
Block a user