Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Registers not updating in ARM Development Studio

Hi guys,

I am very new to ARM and programming and am taking infantile steps to learn them.

On a windows 10 platform I have downloaded and installed the 30day ARM Dev Studio 2019.0 coding environment together with the FVP (cortex -53Ax1) for emulation.

At this very early stage I am using the default armlink.exe linker.

My aim is to just learn AARCH64 assembly with absolutely no C at all. I have a test code to check registers, memory etc... which is listed below:

.section ".text.boot"

.global _start

_start:
mov X0, #2

Since I am using the default linker I don't know if the sections/directives etc... in the code above matter. It's a very simple piece of code which should just update register X0 to the immediate value 2. However when I check the register X0 it always shows as 0x0000000000000000. If I am correct it must read 0x0000000000000010

Can someone please advise of the correct steps if i am missing out on anything.

Thanks,

Tony201900

Parents
  • Hi Ronan, thank you so very much for your quick response. Your advise was spot on!. I had some problems importing your file into the environment so changed a few things in my project to reflect your advise. I was then able to successfully simulate the code. 

    Many thanks again,

    Tony

Reply
  • Hi Ronan, thank you so very much for your quick response. Your advise was spot on!. I had some problems importing your file into the environment so changed a few things in my project to reflect your advise. I was then able to successfully simulate the code. 

    Many thanks again,

    Tony

Children
No data