Noteworthy Posted January 21, 2009 Share Posted January 21, 2009 (edited) Hello dear comrades,"This is for all you folks out there, who want to learn the magic art of Assembly programming." - MADWhat 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 September 27, 2009 by Noteworthy 1 Link to comment
Loki Posted January 21, 2009 Share Posted January 21, 2009 http://www.scribd.com/doc/280426/Assembly-...ge-Step-by-Step Link to comment
glaufan Posted January 21, 2009 Share Posted January 21, 2009 Why Learning Assembly Language Is Still a Good Idea ?ASM language will provide you: Link to comment
Noteworthy Posted January 21, 2009 Author Share Posted January 21, 2009 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. Link to comment
GEEK Posted January 21, 2009 Share Posted January 21, 2009 (edited) 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 January 21, 2009 by GEEK Link to comment
hanjian Posted February 9, 2009 Share Posted February 9, 2009 Thx for this Information"Hanjian" Link to comment
commonjunks Posted February 10, 2009 Share Posted February 10, 2009 Thanks for links. Link to comment
Mouradpr Posted September 26, 2009 Share Posted September 26, 2009 good work dear Noteworthy,Asm Addict Link to comment
Noteworthy Posted September 26, 2009 Author Share Posted September 26, 2009 (edited) 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 September 26, 2009 by Noteworthy Link to comment
Fungus Posted September 26, 2009 Share Posted September 26, 2009 Wow nice post, missed it before. Should be a sticky imo+1 Link to comment
codeyu Posted September 7, 2010 Share Posted September 7, 2010 very Good。Mark。thanks! Link to comment
SuperCRacker Posted September 8, 2010 Share Posted September 8, 2010 I have missed this one too, was not active at the time. Nice contribution Noteworthy SC Link to comment
dexter4life Posted September 21, 2010 Share Posted September 21, 2010 Please Guys, just a newbie. Please any place to get infos for a beginner like me. Thanks a lot +++++++++++++++++++++Dexter++++++++++++++++++= Link to comment
diablo2oo2 Posted September 19, 2011 Share Posted September 19, 2011 I would like to share my modified MASM syntax file "masm.uew" for UltraEdit. masm_syntax_ultraedit.zip Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now