aboutsummaryrefslogtreecommitdiff
path: root/samples/move.orgaasm
diff options
context:
space:
mode:
Diffstat (limited to 'samples/move.orgaasm')
-rw-r--r--samples/move.orgaasm9
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/move.orgaasm b/samples/move.orgaasm
index 7ca109f..f47b6ff 100644
--- a/samples/move.orgaasm
+++ b/samples/move.orgaasm
@@ -16,6 +16,7 @@ include(std.orgaasm)
/player/erase
/player/update
/player/draw
+ /invert
JMP ,main/loop
@input.kleft 0000
@@ -46,6 +47,7 @@ include(std.orgaasm)
-input.kup LDA SUB
-input.kdown LDA ADD
/clamp -player.y STA
+@player/update/break
RET
@player/erase ( -- )
@@ -62,6 +64,13 @@ include(std.orgaasm)
/draw/sprite
RET
+@invert ( -- )
+ -Screen
+@invert/loop
+ DUP LDA #0001 LSF OVR STA
+ INC DUP JNZ ,invert/loop
+ POP RET
+
@draw/pixel ( x y col -- )
ROT #007f AND
ROT #007f AND