Null statement (NOP or CONTINUE)


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    I should probably have explained:

    I don't leave the dummy statement in a finished program. Usually, it occupies a space where another function, or a GOTO, or a GOSUB will be placed.

    I really like Alain's

    WHILE 0
    WEND

    . . . which I assume I could render on one line as WHILE 0 : WEND, and then go from there.

    But the GOTO $+1 intrigues me, too. Will that work as a PBP command?
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

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


    Did you find this post helpful? Yes | No

    Default

    yeah it will work, but you need to use the @ sign before (how it's called anyways, here we use to call it commercial A, then AT... )as it's an ASM statement

    @ GOTO $+1
    Steve

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

Similar Threads

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