×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MASM 6.1 ASSEMBLY LANGUAGE

MASM 6.1 ASSEMBLY LANGUAGE

MASM 6.1 ASSEMBLY LANGUAGE

(OP)
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.  

RE: MASM 6.1 ASSEMBLY LANGUAGE

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.



RE: MASM 6.1 ASSEMBLY LANGUAGE

(OP)
Hi Zeighost (computer)
Thank you very much for your time.
From John5 (MASM6.1 ASSEMBLY LANGUAGE)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources