944,057 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 28731
  • Assembly RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 17th, 2006
8

Let's learn assembly!

Expand Post »
Just for fun, I wrote up a quick tutorial for basic assembly. At present, it's only in the form of a PDF document, but I'll eventually get around to adding it to my website.
Attached Files
File Type: pdf learnasm.pdf (124.9 KB, 6155 views)
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Mar 17th, 2006
0

Re: Let's learn assembly!

Thank you!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,646 posts
since Feb 2002
Mar 18th, 2006
0

Re: Let's learn assembly!

Just to note that there's a bug in the code near the end. I just noticed that I intended to use 'invoke' as the subroutine macro, but was too used to my usual 'scall' when I wrote the programs. Change this:
Assembly Syntax (Toggle Plain Text)
  1. %macro invoke 2-*
To this:
Assembly Syntax (Toggle Plain Text)
  1. %macro scall 2-*
And you won't need to make any changes to the example programs.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Apr 7th, 2007
0

Re: Let's learn assembly!

I just joined daniweb and i'm having trouble accessing the pdf. it says i need to register
Reputation Points: 10
Solved Threads: 0
Newbie Poster
webeturtle is offline Offline
1 posts
since Apr 2007
Apr 10th, 2007
0

Re: Let's learn assembly!

Click to Expand / Collapse  Quote originally posted by Narue ...
Just for fun, I wrote up a quick tutorial for basic assembly. At present, it's only in the form of a PDF document, but I'll eventually get around to adding it to my website.
Just a couple of quick notes:

o You might want to talk about the structure of the CPU first before giving ANY code.

o You might want to describe an intruction before you use it in a code listing.

o What about comments beside the code?

o Remove sentences that don't contribute to learning assembly.

o Maybe split this into about 3 sections/chapters?

A really good start!

Nathan.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005
Apr 10th, 2007
0

Re: Let's learn assembly!

Can you divided the assembly section to different assembler ground it will be must easier...

for example HLA ,NASM ,..........etc
Reputation Points: 10
Solved Threads: 0
Newbie Poster
uaefame is offline Offline
6 posts
since Apr 2007
Apr 11th, 2007
0

Re: Let's learn assembly!

Just thanks.
Reputation Points: 55
Solved Threads: 11
Junior Poster
mostafadotnet is offline Offline
157 posts
since Jul 2006
Apr 13th, 2007
0

Re: Let's learn assembly!

Click to Expand / Collapse  Quote originally posted by Narue ...
Just for fun, I wrote up a quick tutorial for basic assembly. At present, it's only in the form of a PDF document, but I'll eventually get around to adding it to my website.
To encourage you to do more, here is a little more feedback on your tutorial. For these, I will reference section headings and paragraphs --

Prerequisites:

o Well, you know what they say about assumptions.

Notes about the Tutorial

o P2 - "inconjunction"
o Maybe give a link where they can get GCC?

Basic Components (.data section)

o In P3, the sentence about dq and dt -- do you need it?
o Code comments are inconsistent.
o Leaves a question open of how many bytes are allocated.

BETTER:

myvar: ; Declare a variable
myvar: db ; Initialize the variable
myvar: db ‘Hello, world!’,10,0 ; Allocate 15 bytes (this is a C-style string)

Registers

o P2 - "The four registers break down" which four??

The rest of the document gets better, so I'll stop here.

Nathan.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005
Jun 18th, 2007
0

Re: Let's learn assembly!

Microsoft’s (CPR) critical problem resolution platforms team's escalation engineers are writing blogs that help people understand assembly in a real world windows environment. The blogs contain a lot of assembly annotation and cover advanced debugging of the windows environment without source in some cases. I think you will find it’s worth a visit.

http://blogs.msdn.com/ntdebugging
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ntdebug is offline Offline
1 posts
since Jun 2007
Aug 19th, 2007
0

Re: Let's learn assembly!

< knock, knock > Hello? Anyone home?? Is there a sequal on the way???

Nathan.
Reputation Points: 99
Solved Threads: 5
Junior Poster
Evenbit is offline Offline
140 posts
since Mar 2005

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.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Assembly Forum Timeline: Why did I still get the error "Divide overflow"
Next Thread in Assembly Forum Timeline: Win32 NASM compile probs with nasmw + lcclnk





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


Follow us on Twitter


© 2011 DaniWeb® LLC