Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming Programming Commands masm - Invokes the XENIX assembler. Syntax masm [option ... ] sourcefile ... Description masm is the XENIX assembler. It reads and assembles 8086/80286 assem bly language instructions from the source file named sourcefile. It then creates a linkable object file named sourcefile.o, or an executable program named a.out. The extension .s is recommended but not required. If this extension is not given, masm displays a warning and continues processing. There are the following options: -a - bnum -c -c -d -Dsym -e - Ipath - llistfile - Mx - Mu Puts the assembled output segments in alphabetic order before copying them to the object file. Specifies the 1/0 buffer size in Kbytes for source, include, and object files {not .crf or .1st files). The valid range of values is 1 to 64. The default is 16K bytes. Outputs cross reference data for each assembled file to filename.crf. Outputs cross reference data for a set of assembled files. The cross reference data is written to files with the same name as the input files, with the filename extension "crf''. Adds a pass 1 listing to the assembly listing file filename.lst. Defines the symbol appended to the -D flag as a null TEXTMACRO. Generates floating point code to emulate the 8087 or 80287 coprocessor. Programs created with this option must be linked with an appropriate math library before being executed. Defines the path appended to the -1 flag as the search path for include files. Up to 10 include paths are allowed in one invocation of masm. Creates an assembly listing file with the same basename as the sourcefile or, if the listfile parameter is given, with that name but with a .1st extension. The file lists the source instructions, the assembled {binary code) for each instruction, and any assembly errors. If file name is "-", the listing is written to stdout. Directs masm to preserve lower case letters in public and external names only when copying these names to the object file. For all other purposes, masm converts the lower case to upper case. Disables case sensitivity. Upper case is now treated identically to lower case. B-89
Programming Commands XENIX Programming masm (continued) - Ml -n - o objfile - 0 objfile -p - r - v - x -X Files /bin/masm See Also Leaves case of symbols alone. Generates information about the symbols used in the assembled programs. The -1 option must also be used for this option to take effect. Copies the assembled instructions in octal to the file named objfile. This file is executable only if no errors occurred during the assembly. This option overrides the default object filename. Copies the assembled instructions in binary to the file named objfile. Checks the assembled instructions to make sure that all memory references are pure so that the code can run in 286 protected mode. Generates floating point code that can only be executed by an 8087 or 80287 coprocessor. Prints verbose error statistics on the console. If not selected, only error counts are displayed. Displays error messages on the standard error channel, in addition to the messages generated in the listing file. Copies to the assembly listing all statements forming the body of an IF directive whose expression (or condition) evaluates to false. cc, ld in "Programming Commands" in the XENIX 286 Programmer's Guide a.out in "File Formats" in the XENIX 286 C Library Guide XENIX Macro Assembler User's Guide. B-90
- Page 304 and 305: XENIX Programming Programming Comma
- Page 306 and 307: XENIX Programming Programming Comma
- Page 308 and 309: XENIX Programming Programming Comma
- Page 310 and 311: XENIX Programming Programming Comma
- Page 312 and 313: XENIX Programming Programming Comma
- Page 314 and 315: XENIX Programm ing Programming Comm
- Page 316 and 317: XENIX Programming Programming Comma
- Page 318 and 319: XENIX Programming Programming Comma
- Page 320 and 321: XENIX Programming Programming Comma
- Page 322 and 323: XENIX Programming Programming Comma
- Page 324 and 325: XENIX Programming Programming Comma
- Page 326 and 327: XENIX Programming Programming Comma
- Page 328 and 329: XENIX Programming Programming Comma
- Page 330 and 331: XENIX Programming Programming Comma
- Page 332 and 333: XENIX Programming Programming Comma
- Page 334 and 335: XENIX Programming Programming Comma
- Page 336 and 337: XENIX Programming Programming Comma
- Page 338 and 339: XENIX Programming Programming Comma
- Page 340 and 341: XENIX Programming Programming Comma
- Page 342 and 343: XENIX Programming Programming Comma
- Page 344 and 345: XENIX Programming lex (continued) E
- Page 346 and 347: XENIX Programming Programming Comma
- Page 348 and 349: XENIX Programming Programming Comma
- Page 350 and 351: XENIX Programming Programming Comma
- Page 352 and 353: XENIX Programming Programming Comma
- Page 356 and 357: XENIX Programming Programming Comma
- Page 358 and 359: XENIX Programming Programming Comma
- Page 360 and 361: XENIX Programm ing Programming Comm
- Page 362 and 363: XENIX Programming Programming Comma
- Page 364 and 365: XENIX Programming prs (continued) :
- Page 366 and 367: XENIX Programming Programming Comma
- Page 368 and 369: XENIX Programming Programm ing Comm
- Page 370 and 371: XENIX Programming Programming Comma
- Page 372 and 373: XENIX Programming Programm ing Comm
- Page 374 and 375: XENIX Programming Programming Comma
- Page 376 and 377: XENIX Programming Programming Comma
- Page 378 and 379: XENIX Programming Programming Comma
- Page 380 and 381: XENIX Programming Programming Comma
- Page 382 and 383: XENIX Programming Programming Comma
- Page 384 and 385: XENIX Programming Programming Comma
- Page 386 and 387: XENIX Programming Programming Comma
- Page 388 and 389: XENIX Programming Programming Comma
- Page 390 and 391: Intel Publications Copies of the fo
- Page 392 and 393: INDEX Note: For a master index to t
- Page 394 and 395: XENIX Programming lint, B-80 thru B
- Page 396 and 397: XENIX Programming fscanf, A-12 get,
- Page 398 and 399: XENIX Programming maketemp, 11-8, B
- Page 400 and 401: XENIX Programming Segments, 2-19, 2
- Page 402 and 403: XENIX Programming yacc.acts, B-123
<strong>XENIX</strong> Programming Programming Commands<br />
masm - Invokes the <strong>XENIX</strong> assembler.<br />
Syntax<br />
masm [option ... ] sourcefile ...<br />
Description<br />
masm is the <strong>XENIX</strong> assembler. It reads and assembles 80<strong>86</strong>/80<strong>2<strong>86</strong></strong> assem bly language<br />
instructions from the source file named sourcefile. It then creates a linkable object file<br />
named sourcefile.o, or an executable program named a.out. The extension .s is<br />
recommended but not required. If this extension is not given, masm displays a warning<br />
and continues processing. There are the following options:<br />
-a<br />
- bnum<br />
-c<br />
-c<br />
-d<br />
-Dsym<br />
-e<br />
- Ipath<br />
- llistfile<br />
- Mx<br />
- Mu<br />
Puts the assembled output segments in alphabetic order before copying<br />
them to the object file.<br />
Specifies the 1/0 buffer size in Kbytes for source, include, and object<br />
files {not .crf or .1st files). The valid range of values is 1 to 64. The<br />
default is 16K bytes.<br />
Outputs cross reference data for each assembled file to filename.crf.<br />
Outputs cross reference data for a set of assembled files. The cross<br />
reference data is written to files with the same name as the input files,<br />
with the filename extension "crf''.<br />
Adds a pass 1 listing to the assembly listing file filename.lst.<br />
Defines the symbol appended to the -D flag as a null TEXTMACRO.<br />
Generates floating point code to emulate the 8087 or 80287 coprocessor.<br />
Programs created with this option must be linked with an appropriate<br />
math library before being executed.<br />
Defines the path appended to the -1 flag as the search path for include<br />
files. Up to 10 include paths are allowed in one invocation of masm.<br />
Creates an assembly listing file with the same basename as the sourcefile<br />
or, if the listfile parameter is given, with that name but with a .1st<br />
extension. The file lists the source instructions, the assembled {binary<br />
code) for each instruction, and any assembly errors. If file name is "-",<br />
the listing is written to stdout.<br />
Directs masm to preserve lower case letters in public and external names<br />
only when copying these names to the object file. For all other purposes,<br />
masm converts the lower case to upper case.<br />
Disables case sensitivity. Upper case is now treated identically to lower<br />
case.<br />
B-89