Let's learn assembly!

Closed Thread

Join Date: Sep 2004
Posts: 7,566
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 705
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Let's learn assembly!

 
3
  #1
Mar 17th, 2006
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, 1296 views)
I'm here to prove you wrong.
Quick reply to this message  
Join Date: Feb 2002
Posts: 12,035
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 127
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Let's learn assembly!

 
0
  #2
Mar 17th, 2006
Thank you!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Quick reply to this message  
Join Date: Sep 2004
Posts: 7,566
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 705
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Let's learn assembly!

 
0
  #3
Mar 18th, 2006
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:
  1. %macro invoke 2-*
To this:
  1. %macro scall 2-*
And you won't need to make any changes to the example programs.
I'm here to prove you wrong.
Quick reply to this message  
Join Date: Apr 2007
Posts: 1
Reputation: webeturtle is an unknown quantity at this point 
Solved Threads: 0
webeturtle webeturtle is offline Offline
Newbie Poster

Re: Let's learn assembly!

 
0
  #4
Apr 7th, 2007
I just joined daniweb and i'm having trouble accessing the pdf. it says i need to register
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: Let's learn assembly!

 
0
  #5
Apr 10th, 2007
Originally Posted by Narue View 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.
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.
while (CPU is present) {some assembly required}
Quick reply to this message  
Join Date: Apr 2007
Posts: 6
Reputation: uaefame is an unknown quantity at this point 
Solved Threads: 0
uaefame's Avatar
uaefame uaefame is offline Offline
Newbie Poster

Re: Let's learn assembly!

 
0
  #6
Apr 10th, 2007
Can you divided the assembly section to different assembler ground it will be must easier...

for example HLA ,NASM ,..........etc
Help me now i help the new generation
Quick reply to this message  
Join Date: Jul 2006
Posts: 155
Reputation: mostafadotnet is on a distinguished road 
Solved Threads: 10
mostafadotnet's Avatar
mostafadotnet mostafadotnet is offline Offline
Junior Poster

Re: Let's learn assembly!

 
0
  #7
Apr 11th, 2007
Just thanks.
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: Let's learn assembly!

 
0
  #8
Apr 13th, 2007
Originally Posted by Narue View 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.
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.
while (CPU is present) {some assembly required}
Quick reply to this message  
Join Date: Jun 2007
Posts: 1
Reputation: ntdebug is an unknown quantity at this point 
Solved Threads: 0
ntdebug ntdebug is offline Offline
Newbie Poster

Re: Let's learn assembly!

 
0
  #9
Jun 18th, 2007
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
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: Let's learn assembly!

 
0
  #10
Aug 19th, 2007
< knock, knock > Hello? Anyone home?? Is there a sequal on the way???

Nathan.
while (CPU is present) {some assembly required}
Quick reply to this message  
Closed Thread

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