This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to write RAM Test in asm

hi

I am using 20216. I am writing a RAM test functionality in which i want to write specific pattern to RAM and read it back. I am unable to compile assembly code for the same. Can you please help me in translatting attached C code to assembly.

c code file is attached. i am trying to convert same code into assembly.

Thanks

Chitra

  • Hi Chitra,

    I do not see the header files attached or any of the error messages from your post to help further, but on a glance through I do not see any problems with your c code.

  • Hi,

    I am unable to understand why do you need header files for this? i am simply trying to translate the code into assembly with 5 parameters. can you help me in translating the code?

    Regards

    Chitera

  • Hi Chitra,

    We thought there were an issue with compiling the code, so I tried to see if that can be compiled on my end.

    But from your last message I see you just want to use this as a reference and develop an assembly level program to perform the same task. If that's the case it should be plain ARM programming, where in you can pass/take all the parameters to an assembly function with first parameter on R0 then the second on R1 and so on, at the end place the return value on r0 and that should take care of it.

    If there is any specific instruction that your are facing some issue while running on a hercules platform, then pls let us know with the error message so that we can help you debug.