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