Going insane with a simple assembly task
JasonDorie
Posts: 1,930
I've started writing what will ultimately be a fixed-point math co-processor for my quadrotor, but I'm at an impasse here and would love a fresh set of eyes on it. I have to assume I'm doing something stupid, but I can't for the life of me figure out what it is.
I've attached the code - There's a very simple test file that sets some variables to known values, then calls my MathAccel cog to load a value from HUB into the cog, then store it back out to a different HUB variable, and display the results through the debug terminal.
The output SHOULD be:
(spin time) 25
(mathaccel time) 10 10
But the 2nd "10" is coming out "100", which means my command to write the value back to a different variable isn't working.
I'll be very grateful if someone can spot what I've done wrong.
Thank you.
I've attached the code - There's a very simple test file that sets some variables to known values, then calls my MathAccel cog to load a value from HUB into the cog, then store it back out to a different HUB variable, and display the results through the debug terminal.
The output SHOULD be:
(spin time) 25
(mathaccel time) 10 10
But the 2nd "10" is coming out "100", which means my command to write the value back to a different variable isn't working.
I'll be very grateful if someone can spot what I've done wrong.
Thank you.
Comments
This [thread=139401]post[/thread] may help.