diff options
-rwxr-xr-x | embed.sh | 3 | ||||
-rw-r--r-- | samples/move.orgaasm | 9 |
2 files changed, 12 insertions, 0 deletions
@@ -8,3 +8,6 @@ cd "$OLDPWD" || exit 1 cembed rom >src/rom.h || exit 1 rm -f rom ./build.sh -DEMBED_ROM= +OUT="$(basename "$1" .orgaasm)" +printf '%s\n' "$OUT" +mv orgaemu "$OUT" 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 |