Shop OBEX P1 Docs P2 Docs Learn Events
SX/B Address Calc Error? — Parallax Forums

SX/B Address Calc Error?

pjvpjv Posts: 1,903
edited 2009-02-17 13:37 in General Discussion
Hi All;

When I'm using the new SX/B conversion command HEXVAL in direct address mode, I believe the wrong address is calculated.... off by -1.

HEXVAL @__Param3, K compiles (first line) to:
1066  00BC  0C0B        MOV FSR,#(__PARAM3-1)          ;  HEXVAL @__Param3, K
      00BD  0024
  

and that points to __Param2, not to __Param3

I have not checked the other conversion commands.

Cheers,

Peter (pjv)

Comments

  • BeanBean Posts: 8,129
    edited 2009-02-16 23:46
    Peter,
    Yeah, not sure how that "-1" got in there. I will fix this.

    Thanks.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • pjvpjv Posts: 1,903
    edited 2009-02-17 00:52
    Thanks Terry;

    On checking, I note that the same happens on HEXSTR.

    Cheers,

    Peter (pjv)
  • BeanBean Posts: 8,129
    edited 2009-02-17 13:37
    Peter,
    These should be fixed in version 2.00.12 that I have just posted.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
Sign In or Register to comment.