The assembly code always gives an error in RAM DS

I am a student and am teaching myself ARM. When armds compile assembly language, the system always prompts an error. But what is certain is that there are no errors in the code, because it was written by Al.

Parents
  • Hi

    My name is Stephen and I work at Arm.

    Thanks for your interest in Arm Development Studio.

    For which processor/architecture are you compiling the code?
    If for Cortex-A53 (Armv8-A), then the registers are named Xn and Wn, not Rn.
    So your instructions should look like, e.g.

    mov X0, #1

    To get started with Arm and Arm DS, please see the Examples provided.

    You can import the examples into your workspace with:

    1. Select File > Import... to open the Import Selection dialog
    2. Expand the Arm Development Studio group and select Examples and Programming Libraries
    3. Click Next to open the Import Development Studio Examples and Programming Libraries dialog
    4. Expand the Examples group to view the example categories
    5. Either select one (or more) of the example categories to import, or expand the example categories to view/select individual examples in each category
    6. Click Finish to import the selected examples into your workspace.

    Hope this helps

    Stephen

Reply
  • Hi

    My name is Stephen and I work at Arm.

    Thanks for your interest in Arm Development Studio.

    For which processor/architecture are you compiling the code?
    If for Cortex-A53 (Armv8-A), then the registers are named Xn and Wn, not Rn.
    So your instructions should look like, e.g.

    mov X0, #1

    To get started with Arm and Arm DS, please see the Examples provided.

    You can import the examples into your workspace with:

    1. Select File > Import... to open the Import Selection dialog
    2. Expand the Arm Development Studio group and select Examples and Programming Libraries
    3. Click Next to open the Import Development Studio Examples and Programming Libraries dialog
    4. Expand the Examples group to view the example categories
    5. Either select one (or more) of the example categories to import, or expand the example categories to view/select individual examples in each category
    6. Click Finish to import the selected examples into your workspace.

    Hope this helps

    Stephen

Children
No data