aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-14 15:38:47 +0200
committerkdx <kikoodx@paranoici.org>2023-04-14 15:38:47 +0200
commit5584b8107cc0d668780f2467125940a2eb8d1784 (patch)
tree3d02fc17daec769521cbfc676144e51908e006ff
parent21eaa6a2f9dae7469c4c593b92398a9385ec7655 (diff)
downloadorga-5584b8107cc0d668780f2467125940a2eb8d1784.tar.gz
samples/move: limit draw pixel to screen space
-rw-r--r--samples/move.orgaasm5
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/move.orgaasm b/samples/move.orgaasm
index 2a32cfc..c73e0e7 100644
--- a/samples/move.orgaasm
+++ b/samples/move.orgaasm
@@ -49,8 +49,9 @@
RET
@draw/pixel ( x y col -- )
- ROT ROT
- #0080 MUL ADD -Screen ADD
+ ROT #007f AND
+ ROT #007f AND
+ #0007 LSF ADD -Screen ADD
STA
RET