idea to post simple assembly examples.

Reply

Join Date: Aug 2009
Posts: 7
Reputation: xellos is an unknown quantity at this point 
Solved Threads: 0
xellos xellos is offline Offline
Newbie Poster

idea to post simple assembly examples.

 
0
  #1
Aug 25th, 2009
isnt it an good idea to make an sticky where everyone can post,
simple examples?

or mini tuts
to get peaple started with asm?

like this an masm example:

  1. .model small
  2. .stack
  3. .data
  4.  
  5. .code
  6.  
  7. main proc
  8.  
  9. mov ah,1 ; dos int 21 interupt ah =1 to
  10. int 21h ; get char from standard input with echo result in al.
  11.  
  12. mov ah,4ch ; program exit
  13. int 21h
  14.  
  15. main endp
  16. end main
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: idea to post simple assembly examples.

 
0
  #2
Aug 25th, 2009
You really don't have enough for a useful snippet. It doesn't do anything! Takes input then terminates!
And you need more comprehensive comments. Something more like...
  1. ; Get a character from input with echo in al
  2. mov ah,1 ; CMD: Get single char
  3. int 21h ; DOS interrupt .
  4. ; al = char
  5.  
  6. mov ah,4ch ; program exit
  7. int 21h ; DOS interrupt
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 7
Reputation: xellos is an unknown quantity at this point 
Solved Threads: 0
xellos xellos is offline Offline
Newbie Poster

Re: idea to post simple assembly examples.

 
0
  #3
Aug 25th, 2009
yes but its just an example to show what i mean
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

Re: idea to post simple assembly examples.

 
0
  #4
Aug 25th, 2009
The snippets place in DaniWeb it's a good place, but i will like if we sticky a post for the beginners(like me).

Thanks!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC