Ideas on checking carry bit

sabbagh sabbagh at acf5.NYU.EDU
Fri Feb 8 05:50:03 AEST 1991


I am trying to hack a program (Bradley's C Forth 83) that requires me
to check (in assembly) the "carry set" bit.  Since I only have the
"complete" set of Iris manuals, there is no mention of a carry bit in
the Assembly language guide; only that the "add" instruction generates
an "overflow exception" if the result cannot be extended as a 32-bit
number.

1.  How does one detect an overflow exception?

2.  Is this (as I guess) equivalent to a "carry bit set" ?

3.  Can I implement the equivalent of checking a carry bit without using
    assembly?

Hadil G. Sabbagh
E-mail:		sabbagh at cs.nyu.edu
Voice:		(212) 998-3125
Snail:		Courant Institute of Math. Sci.
		251 Mercer St.
		New York,NY 10012

"Injustice anywhere is a threat to justice everywhere."
					- Martin Luther King, Jr.
Disclaimer: This is not a disclaimer.



More information about the Comp.sys.sgi mailing list