SUBSCRIBE TO NEWS
Subscription by Email - news

Discard subscription
112

Program with exe file

2012
12
Dec.
Admin
viewsViews: 1881         commentsComments: 38

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:
RATE PUBLICATION
0   (votes: 0)
Read more with:
Virtual machine with a static IP.
Virtual machine with a static IP.
Let us assume, that on a virtual machine you have a web server and you want to...
2012
7
Nov
Admin
Views: 1903 Comments: 27
Comments (38)
Wonger1s Posted
14 Decemb. 12
avatar
Good tips. Thanks!
Lodder Posted
14 Decemb. 12
avatar
Good instruction. Thanks
Lara Posted
21 January 13
avatar
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.
Katalina Posted
24 January 13
avatar
There is certainly noticeably a bundle to know about this. I assume you created specific nice points in attributes also.
Kira Posted
05 March 13
avatar
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.
Eva Posted
05 March 13
avatar
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!
Lucky Posted
05 March 13
avatar
you've got an excellent weblog here! would you like to create some invite posts on my weblog?
Gullit Posted
05 March 13
avatar
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!
TitTitGeall Posted
29 March 13
avatar
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!
Geall Posted
29 March 13
avatar
Which is a fantastic point to bring up.
Angelina Posted
30 March 13
avatar
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!
Mike Posted
30 March 13
avatar
thanks for this information
Denny Posted
02 April 13
avatar
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.
Andrew Posted
02 April 13
avatar
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.
TitTitGeall Posted
20 April 13
avatar
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
TitTitGeall Posted
20 April 13
avatar
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
TitTitGeall Posted
20 April 13
avatar
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
nagunindink Posted
21 April 13
avatar
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
Juggipsyporgo Posted
25 April 13
avatar
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
actishhic Posted
09 May 13
avatar
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
actishhic Posted
09 May 13
avatar
Your location is valueble for me. Thanks! michael kohrs
actishhic Posted
09 May 13
avatar
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
actishhic Posted
09 May 13
avatar
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
nagunindink Posted
16 May 13
avatar
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
nagunindink Posted
16 May 13
avatar
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
actishhic Posted
16 May 13
avatar
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
actishhic Posted
16 May 13
avatar
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
actishhic Posted
16 May 13
avatar
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
pypeFolillVep Posted
17 May 13
avatar
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
pypeFolillVep Posted
17 May 13
avatar
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
pypeFolillVep Posted
20 May 13
avatar
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
pypeFolillVep Posted
20 May 13
avatar
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
pypeFolillVep Posted
20 May 13
avatar
Your place is valueble for me. Thanks! new era hats
pypeFolillVep Posted
20 May 13
avatar
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
actishhic Posted
20 May 13
avatar
Marvelous Post.thanks for share..additional wait .. new era hats
actishhic Posted
20 May 13
avatar
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
actishhic Posted
20 May 13
avatar
fairly nice post, i undoubtedly love this internet site, keep on it snapback hats
actishhic Posted
20 May 13
avatar
There is certainly noticeably a bundle to understand about this. I assume you created certain nice points in functions also. new era hats

To add comment, please, authorize.
Authorize using Yandex Google Mail.ru Twitter