Save and restore functions in interrupts
Assaff Rawner
Posts: 6
When I look at the assembly listing that SX/B produces I can see the function to store the variables during an Interrupt call but I don't see a function generated to restore them. Is this normal? Is it hidden?
Someone?
Thanks
Assaff
Someone?
Thanks
Assaff
Comments
· Please post the code your are referring to.
· The variables should be restored by the RETURNINT command.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module"·available from Parallax for only·$49.95 http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com
"Sometimes it is better to remain silent and be thought a fool, than to speak and remove all doubt."
·
Here is an example SX/B file and its listing file. Note this program doesn't actually do much I just put in dummy interrupt code.
Thanks
You need to use the SXB command "RETURNINT" instead of "\RETI"
Also you are using an old version of SX/B. You can download version 1.42.01 from this forum.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module"·available from Parallax for only·$49.95 http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com
"Sometimes it is better to remain silent and be thought a fool, than to speak and remove all doubt."
·
That explains a lot. I did try it with my own version of the Save and restore functions and it fixed the problem I was having so now I will try it with RETURNINT instead.
BTW your video overlay board is great!
·