strange word varable array results


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: strange word varable array results

    is this a bug for 3.07 ?
    and why only for indexed words of 1,3,5 and not 0,2,4 ?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: strange word varable array results

    YOUR not picking up on what i.m saying
    is this a bug for 3.07 ?
    no

    and why only for indexed words of 1,3,5 and not 0,2,4 ?
    WRONG it is wrong for any index but 0
    look at post#3 output


    0. GateID_word[0] = 10 Gate_Firm_Rev[0] = 84 Gate_Firm_Rev.highbyte[0] = 0 Gate_Firm_Rev.lowbyte{0} = 84


    1. GateID_word[1] = 8479 Gate_Firm_Rev[1] = 85 Gate_Firm_Rev.highbyte[1] = 85 Gate_Firm_Rev.lowbyte{1} = 0


    2. GateID_word[2] = 16367 Gate_Firm_Rev[2] = 86 Gate_Firm_Rev.highbyte[2] = 0 Gate_Firm_Rev.lowbyte{2} = 85


    3. GateID_word[3] = 65281 Gate_Firm_Rev[3] = 87 Gate_Firm_Rev.highbyte[3] = 86 Gate_Firm_Rev.lowbyte{3} = 0


    4. GateID_word[4] = 63744 Gate_Firm_Rev[4] = 88 Gate_Firm_Rev.highbyte[4] = 0 Gate_Firm_Rev.lowbyte{4} = 86


    5. GateID_word[5] = 32640 Gate_Firm_Rev[5] = 89 Gate_Firm_Rev.highbyte[5] = 87 Gate_Firm_Rev.lowbyte{5} = 0


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 84


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 85


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 86


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 87


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 88


    Gate_Firm_Rev.highbyte[5] = 0 Gate_Firm_Rev.lowbyte{5} = 89

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: strange word varable array results

    Hi,
    On top of turning to the manual, whenever it comes to bits, bytes, words and arrays you should reference Melaines excellent writeup on the subject. For this particullar topic, look at section 5.

    /Henrik.

Similar Threads

  1. Need help - 16f876 - strange results
    By neverenouph in forum mel PIC BASIC
    Replies: 2
    Last Post: - 26th October 2013, 13:24
  2. RC - connection using RCTime produces strange results
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th February 2007, 16:16
  3. Strange Results in Math
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st August 2005, 07:09
  4. Help! - Very strange results with ShiftIn/ShiftOut
    By khufumen in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd February 2005, 22:21
  5. First test program, but strange results
    By bartman in forum General
    Replies: 12
    Last Post: - 19th November 2004, 03:14

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