I have write this code for test the function of a counter.
It should make sound by Left Out every 2.7 seconds, but don't work, it make sound always.
Where is the error?
Thanks
Code: Select all
equ time reg0
equ number reg1
equ counter 0.00001
skp run,START
sof 1,-0.5
wrax number,0
sof 0,0
wrax time,0
START:
ldax time
sof 1,counter
wrax time,1
sof 1,-0.9
skp neg,ONE
sof 0,0
wrax time,0
ldax number
sof -1,0
wrax number,0
ONE:
ldax number
skp neg,TWO
rdax 20,0
wrax 22,0
skp zro,END
TWO:
RDAX 20,1
WRAX 22,0
END: