LOOKDOWN command question


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Location
    New Hampshire, USA
    Posts
    107

    Default LOOKDOWN command question

    Chuck Hellebuyck's book states that the command is: LOOKDOWN search, (constant {, constant}), var. 'search' is a word or bit that is searched for a match to 'constant'. If a match is found, the position of the matched constant is stored in 'var'. Zero = first constant, 1 = second constant, etc. What happens if no match is found?

  2. #2
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Post

    The PBP manual states:
    Thus, if the value is found first in the list, Var
    is set to zero. If second in the list, Var is set to one. And so on. If not
    found, Var remains unchanged.
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

Similar Threads

  1. Need more speed in Lookdown and Branchl instructions
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th August 2006, 23:04
  2. DTMF Decode with Mitel 8870 & 16F628
    By m0cke in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd March 2004, 07:44

Members who have read this thread : 1

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