Passing Object output into assembly code
I found a microphone to headphone with delay and echo example on this forum. http://forums.parallax.com/showthread.php?97402-Microphone-to-Headphones-Object&p=676274
I have successfully modified the assembly code to produce a 10 bit audio delay for my project.
I would like to change the delay and attenuation with a rotary encoder/decoder object found in the object exchange.
I need an example of passing object outputs into assembly code. I understand I will need to limit the delay and attenuation values to prevent undesired results.
Stephen Wagner
I have successfully modified the assembly code to produce a 10 bit audio delay for my project.
I would like to change the delay and attenuation with a rotary encoder/decoder object found in the object exchange.
I need an example of passing object outputs into assembly code. I understand I will need to limit the delay and attenuation values to prevent undesired results.
Stephen Wagner

Comments
Really simply... you can start a PASM cog pointing to the variable
The address of that variable (a long) is now in the par register and your PASM code can read it
dat org 0 entry rdlong tmp1, par ' read parameter ' now do something with itThis is just one variable. If you need to pass more then you'll pass the address of the first in a group and build and address list at the top of your PASM code.
SJW
Steps 3 and 4 cover this sort of thing.
Graham
I also found the Jan. 2011 Spin Zone to be very helpful.
SJW