Bernd,

>> I believe that the RC = 2 was found to be not necessary in the case of
TRTE, because this case (nonzero function byte in the last byte of the string
to be tested)

Absolutly- If I reshuffle my code such that I maintain position within
source (and target of course) I could easy forget about it. The logic
would then be:
 xxx.
 check for end -
    move from current to end-
    check for specials
    if one - handle it
    adjust pointers
 continue at xxx

but I did not want to juggle pointers over two strings hence my logic
is:
 move entire field
 xxx.
   check for specials
   exit if nothing
   move off to make space for new specials
   handle them
   adjust pointers
   move remainder back in
 continue at xxx

now that I have written it: I could "move nothing"(1*) (at the move off
step) and check at the adjust pointers to simply the code.



Note:
(1*)Right now the code uses MVST but MVCL has the zero option as well
(as opposed to MVC)- Shows how deep the influence of early education
goes (=zero is not an option with SS).

--
Martin

Pi_cap_CPU - all you ever need around MWLC/SCRT/CMT in z/VSE
more at http://www.picapcpu.de

Reply via email to