Re: QPROCT and QPRODT
"Richard Thomas" <richard_matthew_thomas-/[email protected]> Sat, 1 May 2010 01:54:05 +0100
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Message-ID | <[email protected]> |
"MXD is the same as POS and HI" - Agreed, when you look at the generated code within a program. I'm not disputing this. I naively expected QPRCRTPG to enforce instruction-specific synonyms for the indicator/branch forms in the IRP (e.g. POS on ADDN is OK, but MXD and HI aren't). Richard -----Original Message----- From: mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:mi400-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of James H. H. Lampert Sent: 30 April 2010 19:17 To: MI Programming on the AS400 / iSeries Subject: Re: [MI400] QPROCT and QPRODT Richard Thomas wrote: > My question is: Given that QPRCRTPG is responsible for converting "the > symbolic representation of a machine interface (MI) program into an OPM > program object." - (i.e. from the IRP) - then surely its IRP syntax-checker > should flag /MXD as an invalid indicator/branch form for the ADDN op-code? But "MXD" is the same as "POS" and "HI." They're just synonyms for the same configuration of the condition flags, provided purely for the sake of source code readability: surely you'd have trouble, without profuse comments, understanding that a ZC condition meant "greater than" on a comparison, "positive" on a numeric operation, and "mixed" on a TSTBUM. The synonyms allow us to use result mnemonics that match what we're conceptually testing for, rather than just matching the actual flags. -- JHHL _______________________________________________ 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. _______________________________________________ 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.