aboutsummaryrefslogtreecommitdiff
path: root/examples/colour_cycle.s
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-25 18:20:15 +0000
committerDimitri Sokolyuk <demon@dim13.org>2015-11-25 18:20:15 +0000
commit76369877147e77c24e6b56f4a166922959c2f149 (patch)
tree4baf650be4971f0577c4a363629099aeddb5a462 /examples/colour_cycle.s
parent4592509f18e44d6302fe3fd7ad69974beb00b749 (diff)
Add examples
Diffstat (limited to 'examples/colour_cycle.s')
-rw-r--r--examples/colour_cycle.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/colour_cycle.s b/examples/colour_cycle.s
new file mode 100644
index 0000000..016a2a2
--- /dev/null
+++ b/examples/colour_cycle.s
@@ -0,0 +1,15 @@
+;Testing the display memory, and making pretty colours.
+; By SmokestormX
+set z,0x8000; Starting mem
+set c,0x0080; Blank Char
+set i,0;
+:loop
+set [0x8000+i],c; Set the Display+offset to C
+add i,1;
+ife i,0x200; 0x200 is the exact size of the display.
+set pc,end;
+set pc,loop;
+:end
+set i,0;
+add c,0x0100; Add offset to C , change this around.
+set pc,loop;