piclist 2017\09\27\055030a >
Thread: 18Fxxxx Instructions
www.piclist.com/techref/microchip/devices.htm?key=18F
face picon face BY : Jan-Erik Söderholmemail (remove spam text)



Hi.

I think there are defaults for both the W and the A bit.
So, as long as the defaults match your needs, technically
you should not need to specify them. But of course, the
code gets clearer if they are spelled out...

Jan-Erik.




-----Ursprungligt meddelande-----
Från: RemoveMEpiclist-bouncesspam@spam@mit.edu [EraseMEpiclist-bouncesRemoveMEspamspamBeGonemit.edu] För Anthony
Nixon
Skickat: den 27 september 2017 11:34
Till: Microcontroller discussion list - Public. <.....piclistspam_OUTspamTakeThisOuTmit.edu>
Ämne: [PIC] 18Fxxxx Instructions

Hi all,

It's been a long time since asking a question here :-)

I've started to use a 18F47K40 chip for a project and I'm still using
assembler for it.

In the other PIC families you could omit the destination bit (F) from an
instruction as the assembler sets it as default.

I gather this is not the case for 18F series when you can have a destination
and RAM access bit

Eg.  ADDWF MyReg,W,A

Do all instructions have to be fully written in this way?

I am porting a 16F application to 18F because I need the extra ROM space. If
this is the case then I will have to rewrite and qualify every instruction.

cheers

Tony
--
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change
your membership options at http://mailman.mit.edu/mailman/listinfo/piclist


-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
mailman.mit.edu/mailman/listinfo/piclist
.

<002201d33776$0a90d990$1fb28cb0$@telia.com> quoted-printable

In reply to: <CADkYAvqqCvh0PDA7jnzYEkp54wyhu1a_LkNmm0_qJ1X_Oh8sug@mail.gmail.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=18F
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) 18Fxxxx Instructions

month overview.

new search...