wARRAY[yARRAY_PT +1] error


+ Reply to Thread
Results 1 to 2 of 2

Thread: wARRAY[yARRAY_PT +1] error4783 days old

  1. #1
    Prolific Poster normnet's Avatar
    Join Date
    Jul 2004
    Posts
    2,411
    Thumbs Up
    Received: 81
    Given: 48
    Total Downloaded
    1.40 GB

    0 Not allowed!

    Default wARRAY[yARRAY_PT +1] error

    HSerOut:
    wTOTAL_CNT 4 = 254 - 250
    wTOTAL_CNT 5 = 255 - 250
    wTOTAL_CNT 65286 = 256 - 250 'error
    wTOTAL_CNT 65287 = 257 - 250 'error

    PDS v3.2.5.5
    6-1-2007
    Code:
    'ISIS
    Device = 18F452  
                                   
    @CONFIG_REQ                   
    @__config CONFIG1H, OSCS_OFF_1 & HS_OSC_1    
    @__config CONFIG2L, BOR_ON_2 & BORV_20_2 & PWRT_ON_2
    @__config CONFIG2H, WDT_OFF_2 & WDTPS_128_2
    @__config CONFIG3H, CCP2MX_ON_3
    @__config CONFIG4L, STVR_ON_4 & LVP_OFF_4 & DEBUG_OFF_4
    
    XTAL = 4 
    
    Dim wINC_CNT As Word
    Dim wARRAY[10] As Word
    Dim yARRAY_PT As Byte
    Dim wTOTAL_CNT As Word
    
    HSERIAL_BAUD = 9600		
            HSERIAL_RCSTA = %10010000       
            HSERIAL_TXSTA = %00100100        
            HSERIAL_CLEAR = On	
    
    DelayMS 800
    HSerOut[13," START ",13]
    
    yARRAY_PT = 0
    wARRAY[1] = 250  
    wINC_CNT = 250
    
    MAIN:
    
    Inc wINC_CNT
    
    '********************** ERROR **************************
    wTOTAL_CNT = wINC_CNT - wARRAY[yARRAY_PT +1]   'ERROR
    'wTOTAL_CNT = wINC_CNT - wARRAY[0 +1]  'NO ERROR
    
    HSerOut["wTOTAL_CNT  ",Dec wTOTAL_CNT," = ",Dec wINC_CNT," - ",Dec wARRAY[yARRAY_PT +1],13]
    '********************** ERROR **************************
    
    If wINC_CNT = 260 Then
    HSerOut[" STOP ",13]
    Stop
    EndIf
    
    DelayMS 1000            
    GoTo MAIN

    Norm

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,814
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.33 GB

    0 Not allowed!

    Default

    Ok noted

    To keep you going use this
    temp = yARRAY_PT +1
    wTOTAL_CNT = wINC_CNT - wARRAY[temp]
    Tim

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 5
    Last Post: 4th February 2018, 21:40
  2. Hundreds of ASM error of the same errors. Error [126]
    By wirecut in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 28th January 2012, 08:10
  3. [SOLVED !] Asm error:error[118]
    By Citius in forum Proton Plus Compiler v3
    Replies: 23
    Last Post: 24th April 2011, 09:34

Tags for this Thread

Posting Permissions

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