[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] optional SRB



> > And where is the stack pointer ????? F-cpu has no dedicated stack
> > pointer !!!

> So what ? SRB or not, it makes no difference. The OS still
> has to figure out where to save the registers anyway. In one
> case it will just set the SRB context block address in an SR
> and let the CPU do the savin, in the other case it will have
> to save registers manually.

How did you start to save your register ? You need a target address that you 
must first put in a register to save your registers, so you always lost at 
least one register... Puting the PC in the SR is not needed. If you want it, 
use loopentry. If you want to modify it use jmp. No need to complexify the SR 
unit for something like that.

> Please note : even if the SRB is not available, the SRs
> SRB_old and SRB_new can still exist, and just be used by the
> OS to emulate the SRB in a software way.

That's not the problem, the problem is how did you preserve all your
registers ?

Cedric
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/