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

Read and set assembler registers c

Hello there,am using keil
I need to be able to access assembly registers from my C code.

Is there a easy way to set the value of a register to the value of a variable and get the value of a register as a variable?? Hope this makes sense..

Parents
  • Not really. The compiler wants to use the machine registers. If you want to use them write in assembler, it is not that complicated. Learn how to use the ABI calling convention to your benefit. There are lots of manuals and technical data, review.

Reply
  • Not really. The compiler wants to use the machine registers. If you want to use them write in assembler, it is not that complicated. Learn how to use the ABI calling convention to your benefit. There are lots of manuals and technical data, review.

Children