Re: QPROCT and QPRODT

"Richard Thomas" <richard_matthew_thomas-/[email protected]> Fri, 30 Apr 2010 11:20:11 +0100
Newsgroups gmane.comp.lang.as400.mi
Message-ID <[email protected]>
Some sort of progress on deciphering the CHAR(2) "resulting condition
information" in the Body section you described Simon:

Body section:
	CHAR(8)	op-code name
	CHAR(2)	op-code number
	CHAR(3)	flags
		CHAR(1)	optional instruction forms
		CHAR(2)	possibly resulting condition information

Per the Information Centre, branch and indicator keywords are divided into
four groups:
Group 1
HI MXD NOR POS TR ZC 
Group 2 
CR DEN IGN LO NEG NTZNTC RO 
Group 3 
AUTH DFR DQ EQ INF SE SGN ZER ZNTC 
Group 4 
EC NAN NTZC UNEQ UNOR

The first byte appears to indicate which groups are valid for the op-code:
Bit 0:	Group 1
Bit 1:	Group 2
Bit 3:	Group 3
Bit 6:	Group 4

The corresponding bits in the second byte appear to denote whether the
condition can be negated. This would explain why the second byte is
b'00000000' for the SIGEXCP op-code as keywords IGN and DFR cannot be
negated.

Best wishes,

Richard



_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.