Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MASM 6.1 ASSEMBLY LANGUAGE

Status
Not open for further replies.

Johny5

Electrical
Oct 24, 2003
3
Hi There Friends, My name is Johny5 .

I learn Microsoft MASM 6.1 to write PC assembly language and most of the time I create a .com file or sometimes I make an .exe file.
What is about some other extension file like xxxx.sys ,xxxx.lib,xxxx.bat,xxxx.inc,xxxx.sts,xxxx.hlp and on and on....ect... These extension files can I make up my own name like xxxx.abc ?.
How can I create an extension ? , can I still use the same Microsoft MASM 6.1 to write a program and compile it to a different extension file ? how ? .
I would like to learn how to write a program has many files like xxxx.com file, xxxx.exe file , xxxx.abc, xxxx.yws...ect... like when you buy a software stored in a floppy disk it has so many files in it.
Can you help me ? . Thank you for your time.
 
Replies continue below

Recommended for you

Executable files have the extension .EXE or .COM.

Assembler files have the extension .ASM and when assembled by MASM generate a file with the extension .OBJ

.LIB files are library files that contain one or more object (.OBJ) files.

Object (.OBJ) files are linked together by LINK.EXE to produce an executable file (.EXE).

.COM files are (or were) produced by running EXE2BIN on the .EXE file but are limited to one segment (64k), with the origin of the program at 100H. This is a carry over from CP/M.

You can use any extension you like, but getting the operating system to recognise these extensions is up to you.

.BAT files are batch files, used to automate operations.

This means that instead of typing

MASM FRED.ASM

LINK FRED.OBJ

EXE2BIN FRED.EXE

you can put the commands in a file called, for instance, DOIT.BAT

Then, when you want to assemble and link FRED.ASM, you just type DOIT and lo! FRED.ASM is assembled and linked.

MASM is generally used for DOS programming, but it is apparently possible to program Windows using assembler. I have no experience of this, but there is a part of the Gibson Research site that shows how to do this.

rgds
Zeit.



 
Hi Zeighost (computer)
Thank you very much for your time.
From John5 (MASM6.1 ASSEMBLY LANGUAGE)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor