Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #1070
| From | "Ed" <invalid@invalid.com> |
|---|---|
| Newsgroups | comp.os.msdos.programmer |
| Subject | Re: Batch file replaceable parameters |
| Date | 2013-11-21 23:07 +1100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <l6kt48$4dg$1@speranza.aioe.org> (permalink) |
| References | (1 earlier) <52844f28$0$9303$703f8584@textnews.kpn.nl> <l61k03$lqc$1@speranza.aioe.org> <5289e2d7$0$15882$e4fe514c@news2.news.xs4all.nl> <l6f9e6$50j$1@speranza.aioe.org> <528bad9a$0$15885$e4fe514c@news2.news.xs4all.nl> |
R.Wieser wrote:
> Hello Ed,
>
> > There was no error message. TASM sees /d"stuff=8" and
> > swallowed it without any effect that I could ascertain.
>
> I take it you also checked the .LST file to see if it maybe contained a
> mangeled version of the above argument ?
I did - nowhere to be found. TASM (tasmx 3.1) appears to treat quoted argument
as a no-op.
> And I must admit that I took it for granted that you would be using a 32-bit
> assembler when from your current post I get the feeling that you are
> actually working with a 16-bit version.
Yes, it's a 16-bit application. In fact it's the only real use I have for TASM.
The majority of my 'asm' work is done with a Forth (RPN) assembler.
> So, I retried with both Borlands TASM v4.1 and v1.01 , and those did accept
> /d without a problem. But when provided with something the same followed by
> something between (double)quotes they both threw an error.
Ok. Currently I have TASMX 3.1 installed. IIRC the 16-bit TASM supplied
with the TASM 5 package actually signs on as version 4.
> But back to the problem: you could maybe use a bit of a cludge like the
> below
>
> - - - - - - - -
> set arg1=
> set arg2=
> if '%1'=='' goto Done
> if '%2'=='' goto Done
> set arg1=%1=%2
> shift
> shift
> if '%1'=='' goto Done
> if '%2'=='' goto Done
> set arg2=%1=%2
> shift
> shift
> rem etc. etc. etc.
> :Done
> tasm /l /t /d%arg1% /d%arg2% source.asm
> set arg1=
> set arg2=
> - - - - - - - -
>
> Its a cludge because you need to be sure that you always provide the extra
> 'variables' correctly. Using a single argument where double argument
> (resulting from the"x=y" format) is expected will throw everything off.
Didn't work for me. The resulting command seen by TASM was:
tasm /l /t /d /d source.asm
Not to worry. I can always type the command by hand on the few occasions
it is required. Thanks for the interest.
Back to comp.os.msdos.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 14:09 +1100
Re: Batch file replaceable parameters Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2013-11-14 05:18 +0100
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 15:35 +1100
Re: Batch file replaceable parameters pete@nospam.demon.co.uk - 2013-11-14 07:30 +0000
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-14 19:19 +1100
Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-18 10:53 +0100
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-19 20:00 +1100
Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-19 19:31 +0100
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-21 23:07 +1100
Re: Batch file replaceable parameters "R.Wieser" <address@not.available> - 2013-11-21 17:39 +0100
Re: Batch file replaceable parameters Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2013-11-18 11:48 +0100
Re: Batch file replaceable parameters pete@nospam.demon.co.uk - 2013-11-18 20:19 +0000
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-19 20:02 +1100
Re: Batch file replaceable parameters Herbert Kleebauer <klee@unibwm.de> - 2013-11-14 09:39 +0100
Re: Batch file replaceable parameters "Ed" <invalid@invalid.com> - 2013-11-17 12:41 +1100
csiph-web