pbp245 compliation error


Results 1 to 10 of 10

Threaded View

  1. #4
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Simple as we can get it.....

    Here is sample code so basic, we only need a LABEL to generate the error.

    code:

    'e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas
    '----------------------------------------------------------
    'FILENAME : FZ4ee0.BAS
    '----------------------------------------------------------
    'PARAMETER INITIALISATION ROUTINE
    '----------------------------------------------------------
    SETUP:
    ' clear
    ' DEFINE OSC 4 'set to 4MHz oscill
    ' INCLUDE "modedefs.bas"
    '----------------------------------------------------------

    error:

    > cd E:\plc\pbp245
    > e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas

    E:\plc\pbp245>e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Error E:\PLC\PBP245\FZ4EE0.ASM 48 : [235] Opcode Expected Instead of 'LABEL?L'
    *** 1 Error ***
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.
    ~~~~~~~~~~~~~~~~~~~~~~~

    ASM file: (NOTE: I have inserted the line numbers, #48 is the offender tho)

    1
    2 ; PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc. All Rights Reserved.
    3 PM_USED EQU 1
    4
    5 INCLUDE "16F876A.INC"
    6
    7
    8 ; Define statements.
    9 #define CODE_SIZE 8
    10
    11 RAM_START EQU 00020h
    12 RAM_END EQU 001EFh
    13 RAM_BANKS EQU 00004h
    14 BANK0_START EQU 00020h
    15 BANK0_END EQU 0007Fh
    16 BANK1_START EQU 000A0h
    17 BANK1_END EQU 000EFh
    18 BANK2_START EQU 00110h
    19 BANK2_END EQU 0016Fh
    20 BANK3_START EQU 00190h
    21 BANK3_END EQU 001EFh
    22 EEPROM_START EQU 02100h
    23 EEPROM_END EQU 021FFh
    24
    25 R0 EQU RAM_START + 000h
    26 R1 EQU RAM_START + 002h
    27 R2 EQU RAM_START + 004h
    28 R3 EQU RAM_START + 006h
    29 R4 EQU RAM_START + 008h
    30 R5 EQU RAM_START + 00Ah
    31 R6 EQU RAM_START + 00Ch
    32 R7 EQU RAM_START + 00Eh
    33 R8 EQU RAM_START + 010h
    34 FLAGS EQU RAM_START + 012h
    35 GOP EQU RAM_START + 013h
    36 RM1 EQU RAM_START + 014h
    37 RM2 EQU RAM_START + 015h
    38 RR1 EQU RAM_START + 016h
    39 RR2 EQU RAM_START + 017h
    40 _PORTL EQU PORTB
    41 _PORTH EQU PORTC
    42 _TRISL EQU TRISB
    43 _TRISH EQU TRISC
    44 INCLUDE "FZ4EE0.MAC"
    45 INCLUDE "PBPPIC14.LIB"
    46
    47
    48 LABEL?L _SETUP
    49
    50 END

    ================================================== ==

    I hope someone may have a flash of ingenuity here and see the error?

    cheers
    Woodzy
    Last edited by Woodzy; - 24th July 2006 at 02:05.

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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