An occasionally forgotten feature is that ALU
operations also have a S-bit to
indicate whether they should update the flags based on the result, or leave
them alone.
Power ISA also has this feature (the so-called "dot" instructions). It also
has special forms of instructions for setting the overflow and carry flags,
when appropriate.
--
------------------------------------ personal:
http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Systems *
www.floodgap.com * ckaiser at
floodgap.com
-- "Garbage in -- gospel out" -------------------------------------------------