Searching \ for 'Branch and simulator on PIC17c4x' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'Branch and simulator on PIC17c4x'.

Truncated match.
PICList Thread
'Branch and simulator on PIC17c4x'
1996\08\15@061201 by Frans Gunawan

flavicon
face
How to unconditional branch (GOTO) in PIC17c4x:
       
       org 0000
       goto goto_here

       org f000
goto_here nop
         ..

Because 'goto' only allows within 8K page boundary!???.

Could MPSIM access larger than 8K ?
Thanks
°rŒ–$ ‚Ÿ–ŒwŒ–

1996\08\15@121957 by fastfwd

face
flavicon
face
Frans Gunawan <spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU> wrote:

> How to unconditional branch (GOTO) in PIC17c4x:
>
>         org 0000
>         goto goto_here
>
>         org f000
> goto_here nop
>           ..
>
> Because 'goto' only allows within 8K page boundary!???.

Frans:

You're right; GOTO only works within 8K pages.  To jump outside the
current 8K page, you can load PCLATH with the high byte of the
destination address, then load PCL with the low byte.  For example:

           org 0000
           movlw high goto_here
           movwf pclath
           movlw low goto_here
           movwf pcl
           ...
           org f000
 goto_here nop

-Andy

Andrew Warren - .....fastfwdKILLspamspam@spam@ix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499

More... (looser matching)
- Last day of these posts
- In 1996 , 1997 only
- Today
- New search...