Shop OBEX P1 Docs P2 Docs Learn Events
mov pc+w question — Parallax Forums

mov pc+w question

ThomasTThomasT Posts: 3
edited 2005-08-26 02:34 in General Discussion
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

Comments

  • BeanBean Posts: 8,129
    edited 2005-08-25 22:49
    Oops,
    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"
    ·
  • ThomasTThomasT Posts: 3
    edited 2005-08-25 23:10
    Thanks Bean,

    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
  • BeanBean Posts: 8,129
    edited 2005-08-25 23:17
    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
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-08-25 23:32
    Here is the (in)famous thread covering SX's secret instructions; but like Bean said, you cant use the debugger when using them because they are the hidden instructions used to make in system debugging (ISD) possible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
  • pjvpjv Posts: 1,903
    edited 2005-08-26 02:34
    Hi All;

    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)
Sign In or Register to comment.