Null statement (NOP or CONTINUE)


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    GOTO $+1 just mean, jump one instruction next to the current one, $ being the current position/instruction.

    This usually eat 2 instruction cycle, while NOP eat 1 instruction cycle

    For 18F, you must use GOTO $+2
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    GOTO $+1 just mean, jump one instruction next to the current one, $ being the current position/instruction.

    This usually eat 2 instruction cycle, while NOP eat 1 instruction cycle

    For 18F, you must use GOTO $+2
    Thank You !That's interesting, It burns through 2 instructions to go where it was going anyway, so if I get this correctly . . . would it jump to any location by changing the 1 to another number, like a GOTO LABEL without the label ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Using SPI
    By The Master in forum Serial
    Replies: 6
    Last Post: - 14th March 2010, 15:37
  2. Trying to build an IR project
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 10th November 2009, 23:48
  3. Hserin
    By [email protected] in forum Serial
    Replies: 11
    Last Post: - 16th December 2008, 18:49
  4. frequency meter in PBP
    By savnik in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th June 2007, 06:34
  5. PIC12F675 trouble
    By russman613 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th February 2006, 18:40

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts