|
>Date: Tue, 5 Jun 2001 11:59:41 -0700 >From: "Peter Dow" <pcdow@yahoo.com> > >Couldn't you simplify some of that a little? > pSrc = %addr(arr1(n)) > pTgt = %addr(arr2(m)) Oops. You're right. >And just a nit on the padding example -- if tgtlen < srclen, it would be >truncating. Yes, it would be truncating, but it has to truncate if the source is longer than the target. I think that part is correct. What wasn't correct was the non-padding case - there should be a check to make sure srcLen isn't too long for the target. >I think this is a case where I'd stick with the fixed format opcode MOVEA -- >free format is obviously not a panacea. I suppose so. Can you (or anyone) think of a reason to use MOVEA? Maybe we should say "MOVEA is not a panacea". Barbara +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.