Port-sparc archive

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

SPARC condition-code question



I'm working on a SPARC emulator, and have run into a 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 have found short (<= 3 instruction) simple sequences to
generate all 12 of the other combinations, but it looks to me as though
getting N and Z set together requires wrpsr.

/~\ 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