Amiga-C (150/223)

From:Stephen Illingworth
Date:17 Aug 2001 at 18:50:26
Subject:[amiga-c] Re: 680x0 Status Register

Hello Colin

On 17-Aug-01, you wrote:

> On 17-Aug-01, Stephen Illingworth wrote:
>> Is it possible to explicitely set flags in the status register
>> for another task?
>> Steve
>
> Tasks do not have status registers, only the cpu does...

Of course they do.

A process (or task in Amiga parlance) could be defined as "the program in
processor context". Consequently, each process has a status register
associated with it.

My question was how I could "force" the setting of a bit in the status
register from another context. If there's no safe way of doing it (which
I half knew but just wanted confirmation) then fine, I won't do it :-)

> If you have to read or set the SR then you should use
> execs SetSR() function instead.

This is for the current task only, unfortunately.

> If you need this, go back & think again about the way you are
> writing the code, there is always a better compatible way....

See my other mail for why I want/need to do this.

> It won't port well at all...

I know.

Regards

Steve

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/KYe3qC/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/