I just started Assembly

Reply

Join Date: Aug 2007
Posts: 3
Reputation: ChipChamp is an unknown quantity at this point 
Solved Threads: 0
ChipChamp ChipChamp is offline Offline
Newbie Poster

I just started Assembly

 
0
  #1
Aug 10th, 2007
Okay, I downloaded Masm32 to my computer, and I found a (seemingly) good simple tutorial online to get me started before I buy a book. But the tutorial said that here is a code for your first program:

  1. .model small
  2. .stack
  3. .data
  4. message db "Hello world, I'm learning Assembly !!!", "$"
  5.  
  6. .code
  7.  
  8. main proc
  9. mov ax,seg message
  10. mov ds,ax
  11.  
  12. mov ah,09
  13. lea dx,message
  14. int 21h
  15.  
  16. mov ax,4c00h
  17. int 21h
  18. main endp
  19. end main

It comes up with a couple errors when I go to "Project" - "Assemble & Link" (is that what I'm supposed to go to?).

I figured out one of the errors... I had to put a _ right before all the main's. But the other one says Symbol Type Conflict on line 9.

Anybody know what the problem is? And also.. If you know of a good tutorial online that I could use to get started off, that would be great if you could link to it!
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 129
Reputation: Evenbit is on a distinguished road 
Solved Threads: 4
Evenbit's Avatar
Evenbit Evenbit is offline Offline
Junior Poster

Re: I just started Assembly

 
0
  #2
Aug 10th, 2007
If you insist on learning the obsolete DOS-style 16-bit code, then you need to get a 16-bit linker. One is available ( Lnk563.exe ) here:
http://website.masm32.com/microsft.htm

Nathan.
while (CPU is present) {some assembly required}
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: ChipChamp is an unknown quantity at this point 
Solved Threads: 0
ChipChamp ChipChamp is offline Offline
Newbie Poster

Re: I just started Assembly

 
0
  #3
Aug 10th, 2007
I don't really insist on learning anything... That's just the tutorial that I found.

So, if it's better to learn 32 bit, I certainly would rather learn that.

Do you know of any online tutorials that teach the code that Masm works with (32 bit)?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 199
Reputation: Tight_Coder_Ex is an unknown quantity at this point 
Solved Threads: 14
Tight_Coder_Ex's Avatar
Tight_Coder_Ex Tight_Coder_Ex is offline Offline
Junior Poster

Re: I just started Assembly

 
0
  #4
Aug 10th, 2007
Originally Posted by Evenbit View Post
If you insist on learning the obsolete DOS-style 16-bit code
There seems to be a lot of interest in 16 bit code in this forum , which leads me to believe there are a lot of educational institutions teaching this. My question would be WHY?

masm32.com has the whole package for 32 bit and some very good examples and tutorials.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 129
Reputation: Evenbit is on a distinguished road 
Solved Threads: 4
Evenbit's Avatar
Evenbit Evenbit is offline Offline
Junior Poster

Re: I just started Assembly

 
0
  #5
Aug 11th, 2007
Originally Posted by ChipChamp View Post
I don't really insist on learning anything... That's just the tutorial that I found.

So, if it's better to learn 32 bit, I certainly would rather learn that.

Do you know of any online tutorials that teach the code that Masm works with (32 bit)?
There are some here:
http://www.asmcommunity.net/board/index.php?action=wiki

And a neat one here:
http://www.deinmeister.de/wasmtute.htm

You can download a PDF here:
http://www.acm.uiuc.edu/sigwin/old/workshops/

And a CHM format one here:
http://www.madwizard.org/view.php?pa...rials.contents

Nathan.
while (CPU is present) {some assembly required}
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 129
Reputation: Evenbit is on a distinguished road 
Solved Threads: 4
Evenbit's Avatar
Evenbit Evenbit is offline Offline
Junior Poster

Re: I just started Assembly

 
0
  #6
Aug 11th, 2007
Originally Posted by Tight_Coder_Ex View Post
There seems to be a lot of interest in 16 bit code in this forum , which leads me to believe there are a lot of educational institutions teaching this. My question would be WHY?
"If it isn't broke, don't fix it!" ;-)

Nathan.
while (CPU is present) {some assembly required}
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: ChipChamp is an unknown quantity at this point 
Solved Threads: 0
ChipChamp ChipChamp is offline Offline
Newbie Poster

Re: I just started Assembly

 
0
  #7
Aug 11th, 2007
Originally Posted by Evenbit View Post
There are some here:
http://www.asmcommunity.net/board/index.php?action=wiki

And a neat one here:
http://www.deinmeister.de/wasmtute.htm

You can download a PDF here:
http://www.acm.uiuc.edu/sigwin/old/workshops/

And a CHM format one here:
http://www.madwizard.org/view.php?pa...rials.contents

Nathan.
Thanks for those!
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC