"XORF" instruction in pic microcontroller

Status
Not open for further replies.

khatus

Member level 3
Joined
Oct 7, 2017
Messages
64
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,756
Hello guys i just started to learn assembly language for pic micrcontroller.in this text i think The line written twice
A B F
0 0 0
0 0 0
is superfluous. What do you think? Why it is written twice?


 

Hi,

why posting megabytes of pictures while copy and past would be much more clear, less than 1% of file size, and more easy to reply?

1st line: shows the starting point.
2nd line: (read the text above) shows what happens when F --> B: Nothing happens when A = 0.
3rd line: But the output toggles when A = 1

Just strictly following the description.

Added:
I did a search for a "PIC instruction set manual" including the XORF instruction. Did not find any.
This makes me question: Is your source reliable? Better use documents provided by the manufacturer, they are more relaible than second source informations.

Klaus
 
Last edited:

I am following this document.
 

Attachments

  • pic-prog-assembly.pdf
    487.4 KB · Views: 173

Hi,

please answer two simple questions:
1) what exact PIC microcontroller do you decide to use?
2) does it support "XORF" instruction?

Klaus
 

is superfluous. What do you think? Why it is written twice?
I think its just the same example, if we follow that the output (F) is fed to input B starting with 0 0, the next step is still 0 0 0, once A gets a 1 it start toggling the output...
Code:
A B F
0 0 0
0 0 0
1 0 1
1 1 0
1 0 1
1 1 0
1 0 1
0 1 1
0 1 1
1 1 0
0 0 0
0 0 0
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…