Two statements from assembly - trying to convert the code in PBasic Pro


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: Two statements from assembly - trying to convert the code in PBasic Pro

    The PBP instruction you're looking for might be "goto INTHAND", but, I wonder if there's really any need to jump to another program area for interrupt handler code?

  2. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Two statements from assembly - trying to convert the code in PBasic Pro

    Hello Mike, Yes you do need to go to another location of memory when interrupts get involved.
    I read the datasheet of the 16f676 and it does say the whole memory is only one page, so I don't know why PCLATH needs touching, I also checked the ISR routine example in the datasheet and it does not mentions anything about the PCLATH. Only saves WREG & STATUS.

  3. #3
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: Two statements from assembly - trying to convert the code in PBasic Pro

    Hi Megahertz,

    Was the original assembly language program written for a 16F676? Also, what is the source for the original assembly language program, please?

    Cheerful regards, Mike

  4. #4
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Two statements from assembly - trying to convert the code in PBasic Pro

    This was written for 16F676 only originally. The source I don't know but I got it from my friend at UNI, we both are trying to understand the context saving part of it.

Members who have read this thread : 0

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