A simple and basic question


Closed Thread
Results 1 to 36 of 36

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default A meaningless question really

    I think the following will happen. At startup all variables are cleared so A = 0. Therefore the While A <> 0 test will fail and the WHILE/WEND block will be skipped.

    HTH
    BrianT

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, ted

    Supposing you use Zaeler_BYTE as a Word ( Good question ... indeed ) :

    As you increment Zaeler_BYTE , you'll reach an overflow ( and return to Zero ) for Zaeler_BYTE = 65536 ...

    so, you'll count from 60 000 to 60535 ...

    that makes ??? loops ...



    BUT ... as it is Zaeler_BYTE ...

    Overflow will occur for Zaeler_BYTE = 256

    And you'll count only from 96 ( 60 000 Lower Byte ) to 255 ...

    that really makes ??? ... loops

    Jawohl ???


    Alain

    PS: we suppose A is an input state ... and can be 0 or 1 ...
    Last edited by Acetronics2; - 25th June 2008 at 12:30.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Newb Question...
    By Perrin` in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd January 2009, 20:49
  2. IF question.
    By Steve Matson in forum General
    Replies: 5
    Last Post: - 23rd November 2007, 03:15
  3. Visual Basic 6 question
    By Christopher4187 in forum Off Topic
    Replies: 5
    Last Post: - 3rd July 2006, 13:06
  4. A simple startup question
    By teilhardo in forum General
    Replies: 6
    Last Post: - 7th January 2006, 20:33
  5. simple newb question
    By PICMAN in forum General
    Replies: 13
    Last Post: - 5th February 2005, 02:16

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