From a29f0032694cda4167e02d954d5b88ab89249e2b Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 16 Dec 2016 16:50:05 +0000 Subject: Added CPC example skeleton. --- src/example/cpc.asm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/example/cpc.asm (limited to 'src/example/cpc.asm') 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 -- cgit v1.2.3