DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   Let's learn assembly! (http://www.daniweb.com/forums/thread41309.html)

Narue Mar 17th, 2006 12:01 pm
Let's learn assembly!
 
1 Attachment(s)
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.

cscgal Mar 17th, 2006 12:19 pm
Re: Let's learn assembly!
 
Thank you! :)

Narue Mar 18th, 2006 3:50 pm
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:
%macro invoke 2-*
To this:
%macro scall 2-*
And you won't need to make any changes to the example programs. :)

webeturtle Apr 7th, 2007 3:20 pm
Re: Let's learn assembly!
 
I just joined daniweb and i'm having trouble accessing the pdf. it says i need to register :(

Evenbit Apr 10th, 2007 10:27 pm
Re: Let's learn assembly!
 
Quote:

Originally Posted by Narue (Post 197884)
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.

uaefame Apr 10th, 2007 10:54 pm
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

mostafadotnet Apr 11th, 2007 12:25 pm
Re: Let's learn assembly!
 
Just thanks.

Evenbit Apr 13th, 2007 12:15 am
Re: Let's learn assembly!
 
Quote:

Originally Posted by Narue (Post 197884)
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.

ntdebug Jun 18th, 2007 8:06 am
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

Evenbit Aug 19th, 2007 8:43 pm
Re: Let's learn assembly!
 
< knock, knock > Hello? Anyone home?? Is there a sequal on the way???

Nathan.


All times are GMT -4. The time now is 7:20 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC