Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

CProgrammer

Masm32 for dos apps

This topic is 5543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do i compile a dos app written in assembler under masm32. The following most simple example just wont work unles i use an older tasm but this is masm syntax or not.
.model small

.data
message "Hallo",10,13,"$"

.code
.startup
lea dx, message
mov ah, 9
int 21h
.exit

end

Share this post


Link to post
Share on other sites
Advertisement
I think that newer versions of Masm32 are 32-bit only...
In contrast to 16-bit Ms-DOS.
The syntax seems right, though.

Share this post


Link to post
Share on other sites
No, sorry.
I haven't written a single line of 16-bit specific code in my life nor do i want to.

EDIT:
By the way, writing your own simple assembler isn't very hard.
All you need is the intel architecture manuals, a simple parser logic, and some knowledge of the executable and object formats.

[edited by - Nik02 on August 16, 2003 5:54:21 AM]

Share this post


Link to post
Share on other sites
Are the Intel/AMD architecture specs free?!

"Tonight we strike,there is thunder in the sky,together we''ll fight,some of us will die,but they''ll always remember that we''ve made a stand and many will die by hand!" - ManOwaR

Share this post


Link to post
Share on other sites
I cut & pasted this from the Masm32 help file

.MODEL directive

If the .MODEL directive is preceded by the .386 or .486 directive
(or their privileged counterparts), the assembler uses 32-bit
segments. If the .386 or .486 directive follows the .MODEL
directive, the default 16-bit segments are used. The flat memory
model uses 32-bit segments and must be preceded by a .386 or .486
directive.


Hope it works.



Stevie

Don''t follow me, I''m lost.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!