cal wrote:jcmvbkbc wrote:depc SR may be used as temporary in the level-1 exception handler.
xtos int1 handler is being jumped to (jx) from vector and being returned from via rte.
So I guess I need depc1/deps1 to get control after the call.
epc1, yes. There's no ps save register for level 1 (as we only get here from intlevel 0, and the rest of the ps is left unchanged). But at the entry to the vector you'd need a place to save at least one register, and excsave1 (normally used for that) may be reserved by the original vector handler, that's why I'm talking about the depc.
cal wrote:Hmmmm ... an int2 may come inbetween. So maybe setting deps1 higher may be needed.
It may not, level 2 is the debug level in lx106, only level 3 (NMI), but that shouldn't lower intlevel.