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

Convert instructions to Hex file

Note: This was originally posted on 14th July 2012 at http://forums.arm.com

Hi,
Not sure if this is the right place to post. But I have the following question and help you can help. Thanks in advance.
I want to convert  instructions to hex strings and load that hex strings to RAM and execute from it.

I created an instruction file, used armasm to covert to machine code. Can BIN2HEX covert the machine code to hex?
Can the hex values be understood by ARM processor when the IP jump to the RAM where the hex contents would locate?

Thanks,
Sy
  • Note: This was originally posted on 16th July 2012 at http://forums.arm.com

    This is actually for simulation. I have backdoor mechanism to load HEX value into RAM. That's why I want to know how to covert instructions to hex value. If there is a manual way, then I won't have to use the assembler. But, if I used the assembler to generate the binary, I need to know how to covert to HEX correctly. Thanks.