From e0929d98dae59645e613f9237ce8eeef097081c4 Mon Sep 17 00:00:00 2001 From: neauoire Date: Mon, 26 Apr 2021 12:00:39 -0700 Subject: [PATCH] Redraw wave on arrow keys --- projects/demos/piano.usm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/demos/piano.usm b/projects/demos/piano.usm index c7e77bf..3b442cf 100644 --- a/projects/demos/piano.usm +++ b/projects/demos/piano.usm @@ -204,16 +204,17 @@ BRK .Controller/button DEI #f0 AND DUP #04 SFT #01 AND #01 NEQ ,&no-up JNZ - ( move ) .Audio/addr DEI2 #0010 SUB2 .Audio/addr DEO2 &no-up + ( move ) .Audio/addr DEI2 #0001 SUB2 .Audio/addr DEO2 &no-up DUP #05 SFT #01 AND #01 NEQ ,&no-down JNZ - ( move ) .Audio/addr DEI2 #0010 ADD2 .Audio/addr DEO2 &no-down + ( move ) .Audio/addr DEI2 #0001 ADD2 .Audio/addr DEO2 &no-down DUP #06 SFT #01 AND #01 NEQ ,&no-left JNZ - ( move ) .Audio/addr DEI2 #0001 SUB2 .Audio/addr DEO2 &no-left + ( move ) .Audio/addr DEI2 #0010 SUB2 .Audio/addr DEO2 &no-left DUP #07 SFT #01 AND #01 NEQ ,&no-right JNZ - ( move ) .Audio/addr DEI2 ++ .Audio/addr DEO2 &no-right + ( move ) .Audio/addr DEI2 #0010 ADD2 .Audio/addr DEO2 &no-right POP ;draw-octave JSR2 + ;draw-wave JSR2 BRK