Assembly problems

Discussion in 'Programmer's Corner' started by Dritech, Feb 19, 2012.

  1. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    Hi,

    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
     
    Last edited: Feb 19, 2012
  2. stahta01

    Member

    Jun 9, 2011
    133
    21
    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.
     
  3. RiJoRI

    Well-Known Member

    Aug 15, 2007
    536
    26
    First, take a look at the tutorials at http://gooligum.com.au/tutorials.html
    Then...

    1) You want to MOVe the Working register to a File.
    MOVWF Reg1 should do it.

    2) The data sheet will -- or should -- tell you the operation of the carry bit. Actually, it should be called the Carry/Borrow bit. The Datasheets I have tell you:
     
  4. MrChips

    Moderator

    Oct 2, 2009
    12,440
    3,361
    Well he did say he is programming a PIC18F.
     
  5. stahta01

    Member

    Jun 9, 2011
    133
    21
    FYI: Notice my post date and his edit time/date.

    Tim S.
     
Loading...