aboutsummaryrefslogtreecommitdiff
path: root/src/example/cpc.asm
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-12-16 16:50:05 +0000
committerIan C <ianc@noddybox.co.uk>2016-12-16 16:50:05 +0000
commita29f0032694cda4167e02d954d5b88ab89249e2b (patch)
tree849581af8ab7ca0f48c1590cd4803fbbb864c2b3 /src/example/cpc.asm
parent3b86882357e8e02fc2740f16780d1c4620ea0c57 (diff)
Added CPC example skeleton.
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