First, take a look at the tutorials at http://gooligum.com.au/tutorials.htmlHi,
I have some questions regarding assembly programming for PIC18F:
1) How to move the value from the working register to another register? do i have to use MOVFF w,REG1 ??
2) Is STATUS,C low (0) when the value is negative?
Thanks
[Status] bit 0: C: Carry/borrow bit (ADDWF, ADDLW, SUBLW, SUBWF instructions)
1 = A carry-out from the most significant bit of the result occurred
0 = No carry-out from the most significant bit of the result occurred
Note: For borrow the polarity is reversed. A subtraction is executed by adding the twos complement of the second operand.
For rotate (RRF, RLF) instructions, this bit is loaded with either the high or low order bit of the source register.
Well he did say he is programming a PIC18F.FYI: There is likely several hundred assembly languages in the world; it would help if you stated the one you are using in the post you ask the question.
I would even suggest having it in the thread title.
Tim S.
FYI: Notice my post date and his edit time/date.Well he did say he is programming a PIC18F.