Searching \ for 'Parallax Simulator Problem' 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/index.htm?key=parallax+simulator
Search entire site for: 'Parallax Simulator Problem'.

Truncated match.
PICList Thread
'Parallax Simulator Problem'
1995\09\22@203537 by Greg Riddick

flavicon
face
I using the parallax simulator for a PIC16C84 part, and cant get
the simulation to do a jump to an indirect address. A jump to 0
redirects program flow to instruction 0 rather than the address
in FSR.  Anyone have a similar problem or am I missing something
simple?

1995\09\23@035513 by John Payson

flavicon
face
> I using the parallax simulator for a PIC16C84 part, and cant get
> the simulation to do a jump to an indirect address. A jump to 0
> redirects program flow to instruction 0 rather than the address
> in FSR.  Anyone have a similar problem or am I missing something
> simple?

Yes.  To do an indirect jump you have to store the jump address into
the PC.  The concept of indirection applies to DATA location 0, not
CODE location zero, so a jump to location 0 is no different from a
jump anywhere else.

1995\09\23@042704 by mauricio

flavicon
face
Greg Riddick <spam_OUTgr3kTakeThisOuTspamUVA.PCMAIL.VIRGINIA.EDU> wrote:

> I using the parallax simulator for a PIC16C84 part, and cant get
> the simulation to do a jump to an indirect address. A jump to 0
> redirects program flow to instruction 0 rather than the address
> in FSR.  Anyone have a similar problem or am I missing something
> simple?

Hey, you can use the FSR (indirect) register only to access file
registers, a jump cannot be indirect because the target address is
contained in the instruction itself, so the program continues at address 0
(FSR).

Max

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