rpg_trim.zig, rpg_decimal_call.zig and rpg_eval_builtins.zig: %CHAR of an integer as the argument of %LEN, a condition, %DEC and %INT (operation 15) #767
Loading…
Reference in a new issue
No description provided.
Delete branch "lo15d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rpg_trim.zig, rpg_decimal_call.zig and rpg_eval_builtins.zig: %CHAR of an integer as the argument of %LEN, a condition, %DEC and %INT (operation 15)
The tracer showed
rpg_trim.charConcat s01(fewer than 27 operations follow thestrip of
%CHAR(I)) in six of the twenty public cases of the batterylo15/char-consumers(captureslo15-char-*):%len(%char(n))and the same ina condition (
char-in-if-len),%dec(%char(n): 7: 0),%int(%char(n)),%scan('7': %char(n))anddsply %char(n). Four now recover; the probes are adopted (lo15-char-len,-char-in-if-len,-dec,-int-of, statement 22 of each).%LEN(%CHAR(I)): after the strip27 P; 3; 27 N2drops the pointer and loadsthe length; the value is
%LEN(%CHAR(I)).%DECand%INTof the digits:27 P; 113 q 1; 27 N2is the source of the_QRNX_GET_DECIMAL_NUMcall.rpg_trim.stripShape(the strip as a pure shape, sharedwith
charStrip) proves the 59 operations;rpg_decimal_call.charSourcefindsthe same unit before the call and takes it as the source (as for
%TRIM), withthe labels of the strip proved to have no other jump. The text is
%DEC(%CHAR(S260): 7: 0)and%INT(%CHAR(S260)).Still open:
%SCAN('7': %char(n))(rpg_eval_builtins.scan s06: the length of thesource is the temporary N2,
scanreads constants only) anddsply %char(n)(thedisplay proof reads fields). Adopting the four probes adds four matrix rows.