piclist 2008\07\08\071009a >
Thread: Code packing
face picon face BY : email (remove spam text)(Olin Lathrop)

David Duffy (AVD) wrote:
>> At least you can see what bank you should be in, so if you see:
>>      banksel  eecon1
>>      bsf      eecon1, wr
>> You know that banking was correctly taken care of.
> Why would seeing the register name make you think more about the
> banking? Seeing the actual register name doesn't imply anything about
> what bank it's in.

I guess you didn't really look at my example above.  You don't need to know
what bank EECON1 is in, but the BANKSEL guarantees the bank is set
correctly.  And this is immediately clear since you can see the BSF
instruction acts on the same address that was just used to set the bank.

Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<011e01c8e0eb$7c233e40$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Code packing

month overview.

new search...