Jump to content


Photo
* * * * * 2 votes

Assembly language : Programming series


  • Please log in to reply
14 replies to this topic

#1 Noteworthy

Noteworthy

    Newbie

  • (Junior+)
  • 13 posts


  • Morocco


Posted 21 January 2009 - 07:55 AM

Hello dear comrades,

"This is for all you folks out there, who want to learn the magic art of Assembly programming." - MAD

What is Assembly Language ?

Some people define assembly language as a language in which one line of source code generates one machine instruction. This has never been literally true, since some lines in an assembly-language source code file are instructions to the translator program and do not generate machine instructions. My own definition follows: Assembly language is a language that allows total control over every individual machine instruction generated by the translator program. Pascal or C compilers, on the other hand, make a multitude of invisible and inalterable decisions about how a given language statement will be translated into machine instructions. For example, the following single Pascal instruction assigns a value of 42 to a numeric variable called V: V : = 42: When a Pascal compiler reads this line, it outputs a series of four or five machine instructions that take the value 42 and store it in memory at a location encoded by the name I. Normally, you the programmer have no idea what these four or five instructions actually are, and you have utterly no way of changing them, even if you know a sequence of machine instructions that is faster and more efficient than the sequence the compiler uses. The Pascal compiler has its own way of generating machine instructions, and you have no choice but to accept what it writes to disk to accomplish the Pascal statements in the source code file. An assembler, however, has at least one line in the source code file for every machine instruction it generates. It has more lines than that to handle numerous other things, but every machine instruction in the final object code file is controlled by a corresponding line in the source code file. 'from assembly language step by step'


Why Learning Assembly Language Is Still a Good Idea ?

ASM language will provide you:

Edited by Noteworthy, 27 September 2009 - 02:13 AM.

  • codeyu likes this

#2 Loki

Loki

    In the Shadows :)

  • (Team Moderator)
  • 3,873 posts
  • Gender:Male

Posted 21 January 2009 - 08:01 AM

http://www.scribd.co...ge-Step-by-Step

#3 glaufan

glaufan

    Newbie

  • (Junior+)
  • 18 posts


  • Australia


Posted 21 January 2009 - 09:15 AM

[quote name='Noteworthy' post='92780' date='Jan 21 2009, 01:55 PM']Why Learning Assembly Language Is Still a Good Idea ?

ASM language will provide you:


#4 Noteworthy

Noteworthy

    Newbie

  • (Junior+)
  • 13 posts


  • Morocco


Posted 21 January 2009 - 11:11 AM

This is not always true, there are some quite smart compilers out there that can generate smarter code than you might think to do by hand in less time and effort. It's likely that you can write an error free program in a safe, high level language that runs just as fast (perceived) for most common cases. I do agree that there are cases in say, graphics, compression or number crunching that might be able to be optimized by hand if you are doing high performance code, but how many of us will ever need to do that? Often what a smart compiler for a higher level language generates is good enough.

Totally agree with you glaufan.

#5 GEEK

GEEK

    Mega Poster

  • (Full Member)
  • 212 posts
  • Gender:Male


  • United Kingdom


Posted 21 January 2009 - 11:29 AM

This is not always true, there are some quite smart compilers out there that can generate smarter code than you might think to do by hand in less time and effort. It's likely that you can write an error free program in a safe, high level language that runs just as fast (perceived) for most common cases. I do agree that there are cases in say, graphics, compression or number crunching that might be able to be optimized by hand if you are doing high performance code, but how many of us will ever need to do that? Often what a smart compiler for a higher level language generates is good enough.


and what you are talking has already been talked about a zillion times

The point is one may not need it but then as you said yourself someone will need it so the one who needs asm will learn it
besides reversers have a different reason to learn it ;)

Nice thread btw for a newbie

Edited by GEEK, 21 January 2009 - 11:30 AM.


#6 hanjian

hanjian

    Member

  • (Full Member)
  • 56 posts
  • Gender:Male


  • Indonesia


Posted 09 February 2009 - 01:48 PM

Thx for this Information

"Hanjian"


#7 commonjunks

commonjunks

    Newbie

  • (Junior+)
  • 6 posts


  • Singapore


Posted 10 February 2009 - 04:13 AM

Thanks for links.

#8 Mouradpr

Mouradpr

    Mega Poster

  • (Full Member)
  • 162 posts


  • Morocco


Posted 26 September 2009 - 09:01 AM

good work dear Noteworthy,Asm Addict

#9 Noteworthy

Noteworthy

    Newbie

  • (Junior+)
  • 13 posts


  • Morocco


Posted 26 September 2009 - 11:24 AM

Hello,

Here is another interesting tutorial (FR) to introduce Assembly in Win32 platforme (Masm32 Package):

http://www.developpez.net/forums/f20/autres-langages/assembleur/


Noteworthy.

Edited by Noteworthy, 26 September 2009 - 11:26 AM.


#10 Fungus

Fungus

    Reverser

  • (Retired)
  • 1,325 posts
  • Gender:Male


  • United States


Posted 26 September 2009 - 04:37 PM

Wow nice post, missed it before. Should be a sticky imo

+1

#11 codeyu

codeyu

    Newbie

  • (Junior)
  • 1 posts


  • China


Posted 06 September 2010 - 08:43 PM

very Good。Mark。thanks!

#12 SuperCRacker

SuperCRacker

    SnD Cracker/Coder

  • (Retired)
  • 1,205 posts
  • Gender:Male


  • Morocco


Posted 08 September 2010 - 04:11 AM

I have missed this one too, was not active at the time. Nice contribution Noteworthy :thumbsup:

SC

#13 dexter4life

dexter4life

    Mr. Dexter

  • (Junior+)
  • 7 posts
  • Gender:Male


  • Nigeria


Posted 21 September 2010 - 10:23 AM

Please Guys, just a newbie. Please any place to get infos for a beginner like me. Thanks a lot
+++++++++++++++++++++Dexter++++++++++++++++++=

#14 kipplyjabrik

kipplyjabrik

    Newbie

  • (Junior)
  • 1 posts


  • Indonesia


Posted 25 September 2010 - 06:30 AM

Nice Info

#15 diablo2oo2

diablo2oo2

    Postmaster

  • (Full Member)
  • 537 posts
  • Gender:Male


  • Germany


Posted 18 September 2011 - 07:53 PM

I would like to share my modified MASM syntax file "masm.uew" for UltraEdit.

Attached File  uedit_wordfile.png   120.33KB   58 downloads

Attached File  masm_syntax_ultraedit.zip   120.71KB   39 downloads




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users