Assembly language

Dear All,

I am very much new to the keil assembler and c language usage in embedde programming. Can anybody help me to sort out some of my problems ?

1. Can I access any of the flags using C language ?

2. If no how can I add assembly code in the '.C' file ?

3. How can I shift the content of a register to right/ left using C ?

These are assumed to be not a processor specific questions.

Please help

Deepak

Parents
  • "I am very much new to the keil..."

    Then you need to start by reading the uVision Getting Started Guide, and working through the example projects in it.

    This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end.
    (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)

    There is no point in getting bogged-down in these fine-detail questions before you've done the basic groundwork!

    "These are assumed to be not a processor specific questions"

    Assumed by whom? It is a false assumption, since none of it is covered by the ANSI standard - so it will all rely upon compiler-specific details which will, in turn, be specific to the target processor in question!

Reply
  • "I am very much new to the keil..."

    Then you need to start by reading the uVision Getting Started Guide, and working through the example projects in it.

    This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end.
    (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)

    There is no point in getting bogged-down in these fine-detail questions before you've done the basic groundwork!

    "These are assumed to be not a processor specific questions"

    Assumed by whom? It is a false assumption, since none of it is covered by the ANSI standard - so it will all rely upon compiler-specific details which will, in turn, be specific to the target processor in question!

Children
More questions in this forum