mov pc+w question
ThomasT
Posts: 3
In the "Table" thread yesterday this instruction (mov pc+w)·was used for a table.
There must be something I'm missing as this does not conform to the·general syntax·(mov Target, Source).
I've poured through Gunther's book (2002) and have not found any reference to help me understand this instruction
(but I probably missed it). Can anyone help spread some light?
Thanks in advance.
Tom
There must be something I'm missing as this does not conform to the·general syntax·(mov Target, Source).
I've poured through Gunther's book (2002) and have not found any reference to help me understand this instruction
(but I probably missed it). Can anyone help spread some light?
Thanks in advance.
Tom
Comments
I copied his mistake.
It should be "JMP PC+W"
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"One experiment is worth a thousand theories"
·
I'm not a seasoned programmer, but thought this might be some "new secret clock saving instruction" from the hidden archives that you folks (who have been around the block more than twice) use!
Tom
No it's not. But there are several "secret" instructions. I don't use them because they screw-up debugging. There is a post somewhere on the forum about them.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
"One experiment is worth a thousand theories"
Post Edited (Bean (Hitt Consulting)) : 8/26/2005 1:45:22 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
While the secret instructions potentially conflict with debugging processes, they CAN provide a dimension in SX programming unattainable through any other means. I successfully use them all the time, but DO exercise caution and awareness during debugging as well as in their application.
It takes a while to get onto the implications of using them, and there are some deeeeeep pitfalls. But once you know about these, the extra utility is quite exceptional; I don't know how I'd have written an effective pre-emptive RTOS without them.
I encourage those who have a deep love to learn the inner secrets of the SX to spend the time, and have a go! It's worth it.
Cheers,
Peter (pjv)