=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 17 February 2004 12:48, you wrote: =2D -- >8 -- > Change your GOTO's to BRA's if you can. You'll still need the RLNCF > because (IMO) of a design flaw in the 18f architecture. Whenever you add a > constant to PCL you gotta multiply it by 2 first. E.g: > > > ADDWF PCL,F > bra W_was_0 ; hit this branch if W was 0 > bra W_was_2 ; ... > bra W_was_4 > > > If you have to use goto's instead of bra's, then you'll need to multiply > your state by 4. silly me, this was probably it... as the wrong calculation would just resul= t=20 in a NOP for state 1 but for state 2 (which should be 4), it would result i= n=20 reading a GOTO to a wrong address.. =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAMaAy9KUEj/m6O5oRAjBnAJ4k/YFGAMidKbdwsZWa7vpN7kzcTwCeIhQw I4yVixacxneC1Iap/ChZZkk=3D =3D2TZ0 =2D----END PGP SIGNATURE----- -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics