riteshjain_82
Junior Member

Offline
Posts: 88
Thank You
-Given: 31
-Receive: 33
|
 |
« on: June 22, 2006, 09:47:58 09:47 » |
|
hi to all ok i am facing a silly problem i have a ASM file of pic 16f877 processor but when i compile it with metlab or other pic asm assambler it show larger errors. after checking the asm there are some confusion that it uses .EQU but normal asm uses only equ is this require onother kind of complier or something else
please help me
;PIC16F877-4, 3.2768MHz, WDT OFF, POR ON, XTAL XS
;Config register bits ; CP1 CP0 DBG NIL WRT CPD LVP BOR CP1 CP0 POR WDT OS1 OS0 ; 1 1 1 1 1 1 0 0 1 1 0 0 0 1 ;N.B. Logic 1/0 do NOT necessarily mean that the function is On/Off ;respectively - refer to PIC '87 data sheet.
#DEFINE PAGE0 BCF $03,5 #DEFINE PAGE1 BSF $03,5
List P = PIC16F877, R=DEC; __CONFIG h'3F31'
INDF: .EQU $00 ;page 0, 1, 2, 3 OPTION: .EQU $01 ;page 1, 3 PCL: .EQU $02 ;page 0, 1, 2, 3 STATUS: .EQU $03 ;page 0, 1, 2, 3 FSR: .EQU $04 ;page 0, 1, 2, 3
PORTA: .EQU $05 ;page 0 TRISA: .EQU $05 ;page 1 PORTB: .EQU $06 ;page 0, 2 TRISB: .EQU $06 ;page 1, 3 PORTC: .EQU $07 ;page 0 TRISC: .EQU $07 ;page 1 PORTD: .EQU $08 ;page 0 TRISD: .EQU $08 ;page 1 PORTE: .EQU $09 ;page 0 TRISE: .EQU $09 ;page 1
|