Program with exe file

38
2080

exe file

Copy the files of Turbo Assembler to your PC (folder ASM).

Run the Norton Commander.

exe fileEnter the ASM folder.

Create a file by pressing Shift + F4, and in the resulting window type a name: HELLO I. ASM

Type the following code in the editor window. Take into account points, spaces, and other characters. Its not necessary to input empty lines.

.MODEL SMALL

.STACK l00h

.CODE
start: mov ax, DGROUP
mov ds,ax
mov dx,OFFSET Message
mov ah,9


int 21h
mov ax,4c00h
int 21h
.DATA
Message DB 'HELLO WORLD !',0dh,0ah,'$'
END
start

;Is indicated, that model memory is used for exe-files.
;Set the stack size - 256 bytes (in hexadecimal system).
;Message (segment address of line) is placed to the DS register.

;Link to the message.
;Place number 9, which is a DOS function number - «line output» in АН register.
;Display a message on the screen.
;Function of DOS completion of the program.
;Complete the program.

;Line with the message.
;End of the program.
;Label indicating the beginning of the program.

In the program are identified three segments:

  • stack segment by .STACK directive of 256 bytes size;
  • code segment by .CODE directive;
  • data segment by .DATA directive.

To make them more visible in the example, they were separated by the empty string. In the message string value 0dh sets the carriage return, value 0ah sets the line feed, $ symbol sets the end of the line.

exe fileAfter input the text of the program, press Esc and on a question about saving the result respond "yes". The text of the program will be saved in the Hello1. asm file.
After the the program text typed it must be converted into an executable file.

In the general case process of program creation involves the following steps:

  • At the stage of assembling the program source code is transformed into an intermediate form, which is called an object module;
  • At the stage of arrangement - one or more modules are combined into an executable program;
  • Assembling and arrangement will be done using the command line.
Author: World of translation
RATE PUBLICATION
5 (votes: 0)

Interesting by thematics:

More news

Комментарии:

  • avatar
    Wonger1s - 14.12.2012, 06:54
    Good tips. Thanks!
  • avatar
    Lodder - 14.12.2012, 21:13
    Good instruction. Thanks
  • avatar
    Lara - 21.01.2013, 06:14
    I was incredibly pleased to locate this web-site.I wanted to thanks for your time for this marvelous read!! I definitely enjoying each and every little bit of it and I have you bookmarked to have a look at new stuff you weblog post.
  • avatar
    Katalina - 24.01.2013, 16:20
    There is certainly noticeably a bundle to know about this. I assume you created specific nice points in attributes also.
  • avatar
    Kira - 5.03.2013, 07:59
    Nice post. I learn some thing alot more challenging on distinct blogs everyday. It will often be stimulating to read content from other writers and practice just a little something from their store. I'd prefer to make use of some using the content on my blog whether or not you don't mind. Natually I'll provide you with a link on your internet weblog. Thanks for sharing.
  • avatar
    Eva - 5.03.2013, 08:30
    An impressive share, I just given this onto a colleague who was performing just a little analysis on this. And he the truth is purchased me breakfast due to the fact I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to talk about this, I really feel strongly about it and enjoy reading a lot more on this topic. If feasible, as you grow to be expertise, would you mind updating your blog with even more details? It really is highly helpful for me. Huge thumb up for this blog post!
  • avatar
    Lucky - 5.03.2013, 09:17
    you've got an excellent weblog here! would you like to create some invite posts on my weblog?
  • avatar
    Gullit - 5.03.2013, 09:51
    An impressive share, I just given this onto a colleague who was performing a little analysis on this. And he the fact is purchased me breakfast for the reason that I discovered it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to talk about this, I really feel strongly about it and love reading alot more on this subject. If possible, as you become expertise, would you mind updating your weblog with far more details? It truly is extremely helpful for me. Big thumb up for this blog post!
  • avatar
    TitTitGeall - 29.03.2013, 05:26
    I discovered your blog web site on google and check a few of your early posts. Continue to maintain up the quite fantastic operate. I just extra up your RSS feed to my MSN News Reader. Looking for forward to reading more from you later on!
  • avatar
    Geall - 29.03.2013, 11:21
    Which is a fantastic point to bring up.
  • avatar
    Angelina - 30.03.2013, 04:03
    When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each and every time a comment is added I get four emails with the exact same comment. Is there any way you are able to eliminate me from that service? Thanks!
  • avatar
    Mike - 30.03.2013, 04:27
    thanks for this information
  • avatar
    Denny - 2.04.2013, 14:11
    You created some decent points there. I looked on the web for the issue and found most individuals will go along with along with your website.
  • avatar
    Andrew - 2.04.2013, 15:23
    Spot on with this write-up, I genuinely feel this web site requirements much more consideration. I'll possibly be again to read much more, thanks for that info.
  • avatar
    TitTitGeall - 20.04.2013, 18:57
    Can I just say what a relief to acquire a person who truly knows what theyre talking about on the internet. You definitely know ways to bring an concern to light and make it significant. A lot more people today have to read this and comprehend this side of the story. I cant think youre not far more well-liked for the reason that you certainly have the gift. rabat Nike Free TR
  • avatar
    TitTitGeall - 20.04.2013, 20:03
    Make sure you take part in a contest for among the best blogs on the web. I will suggest this web site! Nike Lunarglide 3 til billig
  • avatar
    TitTitGeall - 20.04.2013, 21:05
    An impressive share, I just given this onto a colleague who was doing a bit analysis on this. And he the reality is purchased me breakfast due to the fact I discovered it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and really like reading far more on this topic. If probable, as you grow to be expertise, would you mind updating your weblog with more details? It truly is extremely valuable for me. Big thumb up for this blog post! womens Nike free sko
  • avatar
    nagunindink - 21.04.2013, 00:47
    I was pretty pleased to find this web-site.I wanted to thanks for your time for this amazing read!! I unquestionably enjoying each little bit of it and I have you bookmarked to have a look at new stuff you blog post. michael kors hand bags
  • avatar
    Juggipsyporgo - 25.04.2013, 02:11
    Nice post. I understand something much more challenging on different blogs everyday. It's going to always be stimulating to read content from other writers and practice a little some thing from their store. I'd prefer to use some with the content on my weblog whether you do not mind. Natually I'll provide you with a link on your internet weblog. Thanks for sharing. red bottom shoes
  • avatar
    actishhic - 9.05.2013, 22:07
    I'm sometimes to blogging and i genuinely appreciate your content. The article has definitely peaks my interest. I'm going to bookmark your web page and keep checking for new specifics. michael kors laptop bag
  • avatar
    actishhic - 9.05.2013, 22:48
    Your location is valueble for me. Thanks! michael kohrs
  • avatar
    actishhic - 9.05.2013, 23:27
    I am generally to blogging and i definitely appreciate your content. The post has certainly peaks my interest. I am going to bookmark your internet site and keep checking for new information. michael kors hand bags
  • avatar
    actishhic - 9.05.2013, 23:48
    It is challenging to come across knowledgeable consumers on this subject, but you sound like you know what you're talking about! Thanks michael kors hand bags
  • avatar
    nagunindink - 16.05.2013, 10:25
    You created some decent points there. I looked on the net for the concern and found most people will go together with along with your website. red bottom shoes
  • avatar
    nagunindink - 16.05.2013, 10:50
    It's difficult to come across knowledgeable individuals on this topic, but you sound like you know what you are talking about! Thanks red bottom shoes
  • avatar
    actishhic - 16.05.2013, 19:51
    I was extremely pleased to acquire this web-site.I wanted to thanks for your time for this splendid read!! I definitely enjoying each small bit of it and I have you bookmarked to have a look at new stuff you weblog post. michael kors on sale
  • avatar
    actishhic - 16.05.2013, 20:10
    It is best to take part in a contest for one of the perfect blogs on the internet. I will recommend this website! michael kors wallets
  • avatar
    actishhic - 16.05.2013, 20:27
    Can I just say what a relief to obtain a person who essentially knows what theyre talking about on the net. You certainly know methods to bring an problem to light and make it imperative. Much more people must read this and recognize this side of the story. I cant believe youre not a lot more favorite simply because you undoubtedly have the gift. michael kors hamilton satchel
  • avatar
    pypeFolillVep - 17.05.2013, 11:44
    Oh my goodness! an amazing post dude. Thank you Yet I am experiencing issue with ur rss . Don't know why Unable to subscribe to it. Is there anyone acquiring identical rss challenge? Anybody who knows kindly respond. Thnkx red bottom heels
  • avatar
    pypeFolillVep - 17.05.2013, 12:18
    This will be the correct blog for anybody who wants to find out about this subject. You realize so significantly its almost hard to argue with you (not that I basically would want?-HaHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Amazing stuff, just excellent! red sole shoes
  • avatar
    pypeFolillVep - 20.05.2013, 02:04
    Aw, this was a actually nice post. In idea I would like to put in writing like this in addition - taking time and actual effort to make a especially good article?- but what can I say?- I procrastinate alot and by no means seem to obtain something completed. new era hats
  • avatar
    pypeFolillVep - 20.05.2013, 02:19
    Can I just say what a relief to discover someone who essentially knows what theyre talking about on the internet. You definitely know the way to bring an issue to light and make it vital. Much more many people really need to read this and have an understanding of this side of the story. I cant think youre not alot more favorite given that you certainly have the gift. cheap hats
  • avatar
    pypeFolillVep - 20.05.2013, 02:31
    Your place is valueble for me. Thanks! new era hats
  • avatar
    pypeFolillVep - 20.05.2013, 02:40
    You can find surely plenty of details like that to take into consideration. That's a fantastic point to bring up. I offer the thoughts above as general inspiration but clearly there are actually questions like the one you bring up exactly where essentially the most valuable factor will be working in honest decent faith. I don?t know if greatest practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment's pleasure, for the rest of their lives. cheap hats
  • avatar
    actishhic - 20.05.2013, 04:17
    Marvelous Post.thanks for share..additional wait .. new era hats
  • avatar
    actishhic - 20.05.2013, 04:38
    An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he the fact is bought me breakfast for the reason that I located it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to talk about this, I really feel strongly about it and enjoy reading more on this subject. If probable, as you turn out to be expertise, would you mind updating your blog with even more details? It is actually extremely valuable for me. Massive thumb up for this blog post! snapback hats
  • avatar
    actishhic - 20.05.2013, 04:58
    fairly nice post, i undoubtedly love this internet site, keep on it snapback hats
  • avatar
    actishhic - 20.05.2013, 05:12
    There is certainly noticeably a bundle to understand about this. I assume you created certain nice points in functions also. new era hats
Go UP