commit a6cea37ef430ce3e8e10518d401aaf36a2589cea
parent d6036dec6b0b32ec7ce0c2630f0aaff8c1d3bdf8
Author: neauoire <aliceffekt@gmail.com>
Date:   Fri,  9 Apr 2021 13:38:47 -0700
Silent audio example
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/build.sh b/build.sh
@@ -32,7 +32,7 @@ else
 fi
 
 echo "Assembling.."
-./bin/assembler projects/examples/dev.screen.usm bin/boot.rom
+./bin/assembler projects/examples/dev.audio.usm bin/boot.rom
 
 echo "Running.."
 if [ "${2}" = '--cli' ]; 
diff --git a/projects/examples/dev.audio.usm b/projects/examples/dev.audio.usm
@@ -29,11 +29,11 @@
 |0100 ;System { vector 2 pad 6 r 2 g 2 b 2 }
 |0110 ;Console { pad 8 char 1 byte 1 short 2 }
 |0120 ;Screen { vector 2 width 2 height 2 pad 2 x 2 y 2 addr 2 color 1 }
+|0130 ;Audio { wave 2 envelope 2 pad 4 volume 1 pitch 1 play 1 value 2 delay 2 finish 1 }
 |0140 ;Controller { vector 2 button 1 }
 |0150 ;Keys { vector 2 key 1 }
 |0160 ;Mouse  { vector 2 x 2 y 2 state 1 chord 1 }
 |0170 ;File { pad 8 name 2 length 2 load 2 save 2 }
-|0130 ;Audio { wave 2 envelope 2 pad 4 volume 1 pitch 1 play 1 value 2 delay 2 finish 1 }
 
 ( vectors )
 
@@ -278,6 +278,7 @@ RTN
 	$loop 
 		OVR2 SWP POP #02 DIV #0f AND #00 NEQ ^$skip JNZ
 			OVR2 ~trkframe.x1 ADD2 =Screen.x
+			~trkframe.y1 #0010 SUB2 =Screen.y
 			#22 =Screen.color
 			~Screen.addr 8+ =Screen.addr
 			OVR2 ~trkframe.x1 ADD2 ~trkframe.y1 ++ ~trkframe.y2 #01 ,line-vertical-dotted JSR2