in reply to is it possible?
Presumably, you are looking to use Perl to manipulate the source code of some assembler like language?
If so, the answer is yes. It would be a relatively simply s/// substitution.
But, in order to help you, you'll have to more clearly define
Is it whenever the text ROUTINE#2 occurs (other than its definition)?
Or only when it appears as the second parameter to the EX instruction?
Only when it is the second argument and R1 is the first?
Is this all contained in one file? Multiple files?
That said, whilst it could certainly be done with Perl, you may be better off using a proper macro processor like M4 or even a C pre-compiler.
Clearer questions lead to better answers -- and stop people misinterpreting the questions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is it possible?
by suno (Acolyte) on Aug 14, 2012 at 05:07 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2012 at 14:20 UTC |