in reply to Re: adding lines at specific addresses
in thread adding lines at specific addresses
1. define a list of all the LABELS I need and store them as variables $label1, $mylabel2 etc.;
2. with an if ... elsif loop, look for every variable $label1 and store it into a new variable; if it finds a match, this variable is defined, if not, it is undefined;
3. a number of if... statements: if variable defined, extract the data belonging to it, print the new lines, then the old data; if variable is undefined, print the new LIG instructions only.
Not sure if I have expressed this in an understandable way and if it can work, but I'll see whether I can cook up something.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: adding lines at specific addresses
by graff (Chancellor) on Oct 10, 2005 at 22:42 UTC | |
by pindar (Initiate) on Oct 11, 2005 at 10:47 UTC | |
by graff (Chancellor) on Oct 11, 2005 at 12:37 UTC | |
by pindar (Initiate) on Oct 12, 2005 at 06:29 UTC | |
by graff (Chancellor) on Oct 12, 2005 at 06:56 UTC | |
|