Shop OBEX P1 Docs P2 Docs Learn Events
Working register accessible to SX/B commands? — Parallax Forums

Working register accessible to SX/B commands?

Paul BakerPaul Baker Posts: 6,351
edited 2005-04-22 17:38 in General Discussion
Ive finally decided to start programming (some things)·in SX/B, and perusing the help file and the SX/B aliases and noticed that the working register is not listed. Is it accessable in SX/B commands or did Parallax determine that the register is thrashed so much the execution of SX/B commands that access is not provided?

Comments

  • BeanBean Posts: 8,129
    edited 2005-04-22 13:30
    The value of W is indeterminate between SX/B commands, so access is not provided.
    You can use it with in-line assembly though.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video Display Module" Available Now.

    www.sxvm.com

    "A problem well defined, is a problem·half solved."
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-04-22 17:15
    Yeah I figured that was the case and of course /ASM mov wcopy, w /ENDASM is a pretty easy work around, just thought Id ask, thanks Bean.
  • BeanBean Posts: 8,129
    edited 2005-04-22 17:38
    You can just prefix the assembly line with a "\" without having to use ASM ENDASM
    \mov wcopy,w
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video Display Module" Available Now.

    www.sxvm.com

    "A problem well defined, is a problem·half solved."
    ·
Sign In or Register to comment.