sxsim and watch variables
hi
have a little question. If i want to see the value of a variables I use the watch command. Now I 'm playing with sxsim. How do you do something like that in sxsim???
stef
have a little question. If i want to see the value of a variables I use the watch command. Now I 'm playing with sxsim. How do you do something like that in sxsim???
stef
Comments
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"
Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
Thanks for clarifying this. But when using sxsim how do you can see then content of variables. It seems like it is something stupit but nevertheless it can help in troubleshoting. Is thier a way in sxsim or do I have to hook up a sx live to see the variable.
stef
I've asked for it too. I'm sure it's on Guenther's todo list.
For now you'll need to look in the listing to see what address the variable is at.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"
Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
In the meantime, one little quick and dirty trick you can pull is to use the GPIOs to see your variable contents.
This gives you two byte "WATCHs" and one nibble, and you don't have to go digging through addresses.
You *might* be able to abuse TRIS this way too, but i didn't say that! [noparse]:D[/noparse]
just came back from a trip to the US, so I could not answer earlier.
As Bean mentioned - Watch variables are on my SXSim todo list, so please be patient. As soon as I have some other important projects off from my desk, I'll work on SXSim again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G