Hi, I guess you should use dots instead of commas in the equates, e. g. outbit equ porta.1 I hope this helps Regards, Imre +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Tue, 29 Jan 2002, Tim Webb wrote: > why am I getting these errors? > > Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 27 : Illegal character (,) > Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 28 : Illegal character (,) > Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 29 : Illegal character (,) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 66 : Missing argument(s) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 67 : Missing argument(s) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 98 : Missing argument(s) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 110 : Missing argument(s) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 117 : Missing argument(s) > Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 119 : Missing argument(s) > > > Title "test.asm" > ; > ; Revision: 01/29/02 > ; > list p=16f877,c=140 ; processor type > errorlevel 1, -(305) > #include "p16f877.inc" > ; > ; Configuration Bits: > ; > ; Oscillator = HS > ; Watchdog Timer = Off > ; Power Up Timer = On > ; Code Protect = Off > ; Brown Out Detect = On > ; Low Voltage Program = Disabled > ; Data EE Protect = Off > ; Flash Program Write = Enabled > ; Background Debug = Disabled > ; > ; > DelayL equ 0x20 ; delay register LOW byte > DelayM equ 0x21 ; delay register MID byte > DelayH equ 0x22 ; delay register HIGH byte > > rw equ PORTA,0 > rs equ PORTA,1 > cs equ PORTA,2 > > > > Start > bcf STATUS, RP0 ; select bank 0 > > clrf PORTA ; clear PORTA > clrf PORTB ; clear PORTB > clrf PORTC ; clear PORTC > clrf PORTD ; clear PORTD > clrf PORTE ; clear PORTE > > bsf STATUS, RP0 ; select bank 1 > > clrf TRISA ; set as outputs > clrf TRISB > clrf TRISC > clrf TRISD > clrf TRISE > > movlw b'00000111' > movwf ADCON1 ; PORTA inputs = digital > > call delay_250ms ; startup stabilize delay > > call init > > call text > > stop > goto stop > > > > init > > bsf rs > bsf cs > > movlw 0x38 > movwf PORTD > > call clk > > movlw 0x0c > movwf PORTD > > call clk > > movlw 0x06 > movwf PORTD > > call clk > > movlw 0x01 > movwf PORTD > > call clk > > return > > text > > movlw 0x80 > movwf PORTD > > call clk > > bsf rs > > movlw 'H' > movwf PORTD > > call clk > > movlw 'I' > movwf PORTD > > call clk > > bcf rs > > return > > clk > > call delay > bcf cs > call delay > bsf cs > > return > > > delay ; 250ms delay > > clrf DelayL ; Clear DelayL Register > clrf DelayM ; Clear DelayM Register > movlw 06h ; Move literal 06h to W register > movwf DelayH ; Move w register to DelayH register > > Wait1 > decfsz DelayL ; Decrement 1 from DelayL Register, skip if > zero > goto Wait1 ; Not 0, continue loop > decfsz DelayM ; Decrement 1 from DelayM Register, skip if > zero > goto Wait1 ; Not 0, continue loop > decfsz DelayH ; Decrement 1 from DelayH Register, skip if > zero > goto Wait1 ; Not 0, continue loop > > return > > END > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body