aboutsummaryrefslogtreecommitdiff
path: root/src/example/spectrum.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/spectrum.asm')
-rw-r--r--src/example/spectrum.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/example/spectrum.asm b/src/example/spectrum.asm
new file mode 100644
index 0000000..01175f9
--- /dev/null
+++ b/src/example/spectrum.asm
@@ -0,0 +1,19 @@
+ ; Simple example spectrum code
+ ;
+ ; To use:
+ ;
+ ; LOAD "" CODE
+ ; RANDOMIZE USR 32768
+ ;
+
+ option output-file,spectrum.tap
+ option output-format,spectrum
+
+ org 32768
+
+ ld a,0
+loop:
+ out ($fe), a
+ inc a
+ and 7
+ jp loop