(piano.tal) Added controller controls

This commit is contained in:
Devine Lu Linvega 2021-11-17 12:24:57 -05:00
parent f75f644aff
commit 64ec555146
1 changed files with 15 additions and 9 deletions

View File

@ -138,15 +138,21 @@ BRK
( release ) ( release )
#00 .Controller/key DEO #00 .Controller/key DEO
.Controller/button DEI #f0 AND .Controller/button DEI
DUP #04 SFT #01 AND #01 ! ,&no-up JCN DUP #11 ! ,&cu JCN #3c ;play JSR2 &cu
( move ) .Audio0/addr DEI2 #0001 -- .Audio0/addr DEO2 &no-up DUP #21 ! ,&cd JCN #3d ;play JSR2 &cd
DUP #05 SFT #01 AND #01 ! ,&no-down JCN DUP #41 ! ,&cl JCN #3e ;play JSR2 &cl
( move ) .Audio0/addr DEI2 INC2 .Audio0/addr DEO2 &no-down DUP #81 ! ,&cr JCN #3f ;play JSR2 &cr
DUP #06 SFT #01 AND #01 ! ,&no-left JCN DUP #12 ! ,&au JCN #40 ;play JSR2 &au
( move ) .Audio0/addr DEI2 #0010 -- .Audio0/addr DEO2 &no-left DUP #22 ! ,&ad JCN #41 ;play JSR2 &ad
DUP #07 SFT #01 AND #01 ! ,&no-right JCN DUP #42 ! ,&al JCN #42 ;play JSR2 &al
( move ) .Audio0/addr DEI2 #0010 ++ .Audio0/addr DEO2 &no-right DUP #82 ! ,&ar JCN #43 ;play JSR2 &ar
DUP #14 ! ,&su JCN #44 ;play JSR2 &su
DUP #24 ! ,&sd JCN #45 ;play JSR2 &sd
DUP #44 ! ,&sl JCN #46 ;play JSR2 &sl
DUP #84 ! ,&sr JCN #47 ;play JSR2 &sr
DUP #40 ! ,&l JCN .Audio0/addr DEI2 #0010 -- .Audio0/addr DEO2 &l
DUP #80 ! ,&r JCN .Audio0/addr DEI2 #0010 ++ .Audio0/addr DEO2 &r
POP POP
;draw-octave JSR2 ;draw-octave JSR2