Shop OBEX P1 Docs P2 Docs Learn Events
what does this symbol do "$" — Parallax Forums

what does this symbol do "$"

Mike WMike W Posts: 105
edited 2007-09-29 02:03 in General Discussion
I· have seen these examples in the SX/B Help File Version 1.51.03, ©2007 Parallax Inc Page 40
And· some of the code in the SX/B forum
·
\DJNZ __PARAM3, $
\JNZ __PARAM3, $
\JNB IOPin, $
·
I know that the { \ } character lets you insert an assembly instruction into SX/B code
DJNZ· = Decrement jump not zero
JNZ···· = Jump if no zero
JNB···· = Jump if bit not set
__PARAM3· = Third byte parameter
·
WHAT does the -· $· -· do / represent
·
Does it just represent a HEX number?
·
·
Mike

Post Edited By Moderator (Bean (Hitt Consulting)) : 9/29/2007 2:06:16 AM GMT

Comments

  • Doug HaleDoug Hale Posts: 23
    edited 2007-09-29 01:38
    $ means "here"


    DJNZ PARAM3, $


    means keep decrementing PARAM3 until it is zero - this is a delay
  • BeanBean Posts: 8,129
    edited 2007-09-29 02:03
    $ means the current instruction address.
    So JMP $ would be an infinate loop.
    And JMP $+1 would jump to the next instruction.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I know what I know, don't confuse me with the facts...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
Sign In or Register to comment.