![CMOSTEK CMT2189C User Manualline Download Page 63](http://html1.mh-extra.com/html/cmostek/cmt2189c/cmt2189c_user-manualline_2627489063.webp)
AN202
V1.0 | Page 63/73
www.cmostek.com
14.4
Context Saving During Interrupts
During an interrupt, only the return PC is automatically saved on the stack.In general, users may wish to
savethe key register value on the stack, such as W, STATUS register, and so on.These must be implemented
insoftware. The temporary registers W_TEMP and STATUS_TEMP should be placed in the last 16bytes of the
GPR. The 16bytes of GPR crosses two pages, so users can save a little bit of code space.