what does this symbol do "$"
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
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
DJNZ PARAM3, $
means keep decrementing PARAM3 until it is zero - this is a delay
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
·