Port-sparc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: SPARC condition-code question
>> Is it true the only way to have condition code bits N and Z set
>> simultaneously involves help from privileged code (specifically,
>> wrpsr)?
> I would guess so, as a combination of N and Z would indicate a result
> that is both negative and zero.
That was my own take on it. But I wasn't sure I hadn't missed
something that either (a) let nonprivileged code fiddle its own
condition code bits (eg, VAX REI is usable from usermode provided,
among other things, that the PSL it restores is a usermode one -
unfortunately SPARC rett is not as nice) or (b) could change some but
not all of the condition code bits (eg, VAX CLRL updates NZV but leaves
C unchanged).
I didn't find anything like either one in the SPARC reference I have,
but I was, and am, not at all sure I didn't miss anything.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index