Asm INTHANDLER and $70-$7F


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289

    Default Asm INTHANDLER and $70-$7F

    Hello,

    why not using the dataarea from $70 to $7F in order to save the registers, because they are mirrored to all banks ?

    16F872

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yes,

    $70-$7F is the perfect place to save the W reg on entry to an interrupt routine. By placing wsave at location $70, you won't have to also create wsave1, wsave2, wsave3.

    Just keep in mind that not all PIC's with mutiple RAM banks have this same common area. So if you change to a different chip later on, you'll also need to change the wsave locations.

    Best regards,
       Darrel

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