home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
asmutl
/
conv_a11.arc
/
CONV_A.DOC
< prev
next >
Wrap
Text File
|
1989-11-06
|
2KB
|
52 lines
CONV_A v1.1 Convert assembly language instructions to lower case,
If MASM-peculiar reserved words, convert to upper case
Usage: CONV_A [[-][/]U][L] file1[.typ]
Switches:
-u, -U, /u, or /U : uppercase ALL reserved words
-l, -L, /l, or /L : lowercase MASM reserved words and ASM instructions
Source filename file1 will be forced to .ASM if no type is given.
Formatted output filename forced to FILE1.FMT
Wildcards may be used for file1.typ
Notes:
I find I do better reading and understanding assembly language
source (as in any other language) if its columns and reserved word
case fit a "standard" format.
I prefer lower case for instructions and "normal" registers
(ax, bx, cx, dx, si, di, bp, sp); and upper case for MASM directives
and "special" registers (CS, DS, SS).
If you don't like this, use one of the command line switches
to produce something different:
Running assembly language source files with mixed-case reserved
words through this utility fixes the case up. In conjunction with a
retabbing utility (TOADSOFT), I end up with a file I can deal with
MUCH better. (And it saves me a BUNCH of global search/replace in
my editor.)
Hope you find it useful. Full Turbo Pascal v5.0 and MASM-compatible
assembly language source is provided.
You may find this quite similar to my UPCONV program (which does
basically the same thing with Pascal source). No wonder .. this is a
hacked version of UPCONV. Just had to handle comments differently.
David Kirschbaum
Toad Hall
kirsch@arsocomvax.socom.mil
v1.1, 5 Nov 89, Toad Hall
- Bug in TOKSTR_A.PAS, wasn't consistently producing lines of tokens
with leading/trailing spaces.
- Tightened up the POSBM.ASM function a wee little bit.
- Converted the Uc string uppercase conversion function to an EXTERNAL one.
- Carved a few deciseconds off a typical run .. nothing significant.