From 1e30b6337b21a9958da58f07bb1229a79f834b3b Mon Sep 17 00:00:00 2001 From: kdx Date: Sat, 15 Apr 2023 14:47:12 +0200 Subject: rgb move --- embed.sh | 3 +++ samples/move.orgaasm | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/embed.sh b/embed.sh index 67062ba..22eb51a 100755 --- a/embed.sh +++ b/embed.sh @@ -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 -- cgit v1.2.3