aboutsummaryrefslogtreecommitdiff
path: root/src/example/cpc.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/cpc.asm')
-rw-r--r--src/example/cpc.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/example/cpc.asm b/src/example/cpc.asm
new file mode 100644
index 0000000..1490cf9
--- /dev/null
+++ b/src/example/cpc.asm
@@ -0,0 +1,22 @@
+ ; Simple example CPC code
+ ;
+ ; To use:
+ ;
+ ; RUN ""
+
+ option output-file,cpc.cdt
+ option output-format,cpc
+ option cpc-start,start
+
+start: org $8000
+
+ ld hl,msg
+loop:
+ ld a,(hl)
+ ret z
+ call $bb5a
+ inc hl
+ jr loop
+
+msg: org $9000
+ defb "Hello World",0