+ Reply to Thread
Results 1 to 2 of 2

Thread: What is %sr in move #0x2700, %sr

  1. #1
    naseeam Bad
    Join Date
    Jul 2007
    Posts
    35

    Default What is %sr in move #0x2700, %sr

    Consider the following move instruction:

    move.w #0x2700, %sr

    This move instruction masks all interrupts. The immediate value 0x2700 is written to destination %sr. What is %sr? How does this instruction work?

    Please point me to documentation that will explain % in this instruction? We are using GCC tools for compiling and assembling our code. Do I need GNU g++ assembler to understand % in this insturction or do I need Freescale Coldfire MCF548x Reference Manual. How do I get this reference manual? And please point me link to fetch the gnu assembler?

    Thanks!


  2. #2
    Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent
    Join Date
    Mar 2006
    Location
    Michigan, USA (GMT-5)
    Posts
    2,892

    Default

    %sr is the symbolic name for a register. If I had to guess I would say that the actual name might be something like "Status Register" or "System Register" The GNU documentation may or may not speak to your question. My experience has been that GNU documentation is generally voluminous and poorly indexed for the neophyte. It is always a worthwhile effort to try to track things like this down. As you gain more experience with it, it does become easier. As far as the particular processor you are using you need to find a document on the Freescale site that is titled something like "Hardware Manual" or "Instruction Set Reference"

    I charge at least $150.00/hr to do this stuff by the way.

    Good Luck.
    Last edited by Papabravo; 21st October 2009 at 03:10 PM.
    We never have time to do it right; but we always have time to do it over.

+ Reply to Thread

Similar Threads

  1. move WORD to TXREG
    By scomi in forum Micro Controllers
    Replies: 12
    Latest: 13th April 2009, 03:58 PM
  2. To be or not to move your backside outa here
    By arrie in forum Chit-Chat
    Replies: 9
    Latest: 6th December 2008, 02:19 PM
  3. Move along now, nothing to see here.
    By Pommie in forum Chit-Chat
    Replies: 5
    Latest: 13th April 2008, 03:25 PM
  4. What Value to move to PCLATH
    By Suraj143 in forum Micro Controllers
    Replies: 19
    Latest: 18th September 2007, 04:31 AM

Tags for this Thread