Re: R3:R2 and state blocks
Thomas Chenot <tom.chenot-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Shawn Silverman wrote: > Let me add to my question: Can I assume that any registers or memory > locations not mentioned by the documentation for the native methods > will be preserved? > > Thanks, > -Shawn In general, if a register, subject to the RESTRICTIONS section of Native_Methods.txt, is not listed in the OUTPUT list or in the NOTES section of the native api docs then it is preserved or not touched between the CALL and RET of the Native_API function. This is not true for thread sleep or suspend methods. You have to push and pop any regs you wish to preserve across a sleep/suspend (described in the "Sleeping in Native Methods" section of Native_Methods.txt).. -- Thomas Chenot _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini