Truncated match.
PICList
Thread
'Branch and simulator on PIC17c4x'
1996\08\15@061201
by
Frans Gunawan
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
Frans Gunawan <spam_OUTPICLISTTakeThisOuT
MITVMA.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 - .....fastfwdKILLspam
@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...