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

assembler rtn called from C

I have the impression that an assembler non-interrupt subroutine called from 'C' need save no registers.

Is that correct?

Erik

Parents
  • Excuse me, your rephrase seems even less clear than the original question. You say: "Are there any cases ... where not saving will topple the code." Should that be understood as "Can an example be constucted..."? If so, the answer is evidently YES. Everything is possible in an assembler routine. If you speak of some practical cases - all depends on your style and skill.
    M.

Reply
  • Excuse me, your rephrase seems even less clear than the original question. You say: "Are there any cases ... where not saving will topple the code." Should that be understood as "Can an example be constucted..."? If so, the answer is evidently YES. Everything is possible in an assembler routine. If you speak of some practical cases - all depends on your style and skill.
    M.

Children
No data