954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

I just started Assembly

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:

.model small
.stack
.data
message   db "Hello world, I'm learning Assembly !!!", "$"

.code

main   proc
   mov   ax,seg message
   mov   ds,ax

   mov   ah,09
   lea   dx,message
   int   21h

   mov   ax,4c00h
   int   21h
main   endp
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!

ChipChamp
Newbie Poster
3 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

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.

Evenbit
Junior Poster
140 posts since Mar 2005
Reputation Points: 99
Solved Threads: 5
 

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)?

ChipChamp
Newbie Poster
3 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 
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.

Tight_Coder_Ex
Posting Whiz in Training
215 posts since Feb 2005
Reputation Points: 47
Solved Threads: 17
 

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?page=tutorials.contents

Nathan.

Evenbit
Junior Poster
140 posts since Mar 2005
Reputation Points: 99
Solved Threads: 5
 
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.

Evenbit
Junior Poster
140 posts since Mar 2005
Reputation Points: 99
Solved Threads: 5
 
ChipChamp
Newbie Poster
3 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You