ASM block does not compile


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    2

    Default ASM block does not compile

    Hello everybody,

    I have a code collected from a website which contains an ASM block, this is for 16F628 PIC. When I try to comile the code, it shows "opcode needed instead of 'porta' " message.

    Is there anybody who can tell me what's wrong here?

    Thanks in advance.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Maybe...But you code is hard to see from here.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    Sounds like your ASM code starts in column 1 ... indent your code a space or two and see what happens

    Code:
    ; FOR EXAMPLE
    
    movwf PORTA ; will not work
    
         movwf PORTA ; will work
    OH, Mackrackit is right - post your code if you want for sure answers.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. config bits
    By brianD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2010, 13:45
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  3. Setting up internal clock correctly?
    By JohnM in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th March 2008, 20:29
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26

Members who have read this thread : 1

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