Add the following to cause the assembler to pass through the include file and pick up the PORTA definition. ;On output, _High contains high byte and _Low contains low byte ;The required byte is in _Sample on entry. (Set to ff for testing) ; ; LIST P=PIC16C84 INCLUDE "P16C84.INC" ; _Sample equ 0xff Base equ 0x20 ;set memory base ; ------------------------------------------- At 08:52 PM 10/3/97 +0000, Tony Vilches wrote: >PORTA is defined in the .inc file (load when the LIST command is >executed) - so why does MPASM not recognise PORTA as a defined >register? > >Cheers, >Antonio >The following section of this message contains a file attachment >prepared for transmission using the Internet MIME message format. >If you are using Pegasus Mail, or any another MIME-compliant system, >you should be able to save it or view it from within your mailer. >If you cannot, please ask your system administrator for assistance. > > ---- File information ----------- > File: byte2led.asm > Date: 3 Oct 1997, 20:44 > Size: 1094 bytes. > Type: Program-source > >Attachment Converted: "c:\eudora\attach\byte2led.asm" > --------------------------------------------------------------------------- Lynn Richardson - Design Eng.|WA0ZNL |Progress Instruments, Inc. DC - 1GHz, RX, TX 100W, PLL |WA0ZNL.AMPR.ORG |807 NW Commerce Drive ASM 6805, 8051, Z8, PIC |44.46.176.3 |Lee's Summit, MO 64086 C |lrich@proginst.com|P(816)524-4442 F 246-4556