please dont rip this site

Scott Dattalo says:

The ambiguities were:

1) Do the rotate instructions really affect the Z bit? Yes they do. This is different than the 12 and 14 bit cores. So be careful when you port your c74 code over.

2) What happens if an indirect register is the object of indirect? For example:

    lfsr indf0,0     ;Load fsr0 with the address of indf0
    movf indf0,w     ;double indirection? Nah..

Like the 14-bit core, this will load W with zero regardless where indf is pointing. This is not too unexpected. But what about this:

    lfsr  indf1,0           ;load fsr0 with the address of indf1
    lfsr  indf0,2           ;load fsr2 with the address of indf0
    movff preinc0,postinc2  ;?

As I understand it, the first fetch will read zero because fsr0 is pointing to an indirect register (indf1). This zero is then written to the address that is contained fsr2. However, fsr2 points to an indirect register (indf0). Consequently the write is ignored.

3) I also had a question about whether the program memory addresses were always even. The answer is yes - even though all instructions are 16 bits wide. The reason is that the table reads and writes to program memory can occur on byte boundaries. Now if you look at the instruction set closely you'll notice that the least significant bit of the program counter is never used EXCEPT for the table reads and writes. Examine the offsets for the branch instructions for example.

Comments:


file: /Techref/microchip/18diff.htm, 1KB, , updated: 2003/5/14 14:25, local time: 2024/12/11 14:03,
TOP NEW HELP FIND: 
3.133.135.106:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/microchip/18diff.htm"> microchip 18diff</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .