944,201 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 2179
  • Assembly RSS
Aug 10th, 2007
0

I just started Assembly

Expand Post »
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:

assembly Syntax (Toggle Plain Text)
  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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ChipChamp is offline Offline
3 posts
since Aug 2007
Aug 10th, 2007
0

Re: I just started Assembly

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.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005
Aug 10th, 2007
0

Re: I just started Assembly

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)?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ChipChamp is offline Offline
3 posts
since Aug 2007
Aug 10th, 2007
0

Re: I just started Assembly

Click to Expand / Collapse  Quote originally posted by Evenbit ...
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.
Reputation Points: 47
Solved Threads: 17
Posting Whiz in Training
Tight_Coder_Ex is offline Offline
215 posts
since Feb 2005
Aug 11th, 2007
0

Re: I just started Assembly

Click to Expand / Collapse  Quote originally posted by ChipChamp ...
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.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005
Aug 11th, 2007
0

Re: I just started Assembly

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.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005
Aug 11th, 2007
0

Re: I just started Assembly

Thanks for those!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ChipChamp is offline Offline
3 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: Linux Assembly - how to output numbers instead of ASCII symbols
Next Thread in Assembly Forum Timeline: Values of eflags after a nonarithmetic instruction





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC