How to Learn assembly

Source: Internet
Author: User

Based on Baidu's knowledge, This article summarizes the csdn community and other posts.

I. from Baidu know: http://zhidao.baidu.com/question/805726.html Fr = qrl3

I have been here. Here is my personal experience:
1. you need to do more. Don't just read books and book examples. If you have the conditions, you can get the example to the computer and try it. If you have succeeded, don't be happy. Your work is only half done, let's change the example. As you mean, think about the result after the change and compare it with the computer. You will get something.
2. debug should be used. In many cases, when you do not know whether the program is correct, you can use DEBUG to trace it.
3. you have to prepare a bad machine. It is the old one that never hurts when something breaks down. used to debug programs on the machine. if you try it with your own machine, it would be a pity if you accidentally washed the Main Boot Sector of the hard disk to the white.
4. ignore the DOS interruption that the teacher said. try the underlying things, such as BIOS calling, Io operations, and control of the graphics card and hard disk. then you will feel the joy of learning assembly language.

2, from Baidu know: http://zhidao.baidu.com/question/21460597.html

Find a machine. If it is installed with a Windows/DOS operating system, you can refer to the following books:
1. Wen dongchan, Shen meiming: Tsinghua University Press, "ibm pc Assembly Language Programming Tutorial", this book is equipped with a exercise book, and the matching learning effect is better;
2. Luo yunbin: "32-bit assembly language programming in Windows", the Electronic Industry Publishing House, now seems to have a second version, and also provides corresponding software information;
3. Translated by Kip R. Irvine and translated by Wen Yujie: Intel assembly language programming (Fourth Edition), Electronics Industry Press; 4. Muhammad Ali mazidi, etc:
4. 80x86 ibm pc and compatible computers (Volume I and volume II): assembly language, design and interface technology (version 4th), tsinghua University Press ([2] With translated Chinese Version)
If you are not limited to installing windows, you can refer to the book <assembly language programming art> published by Mei. Randall Hyde, translated by Chen shuhui, Tsinghua University, but it may be difficult.
We recommend that you read some books about the principles of the computer and the principles of the computer to familiarize yourself with the computation process.

3, from Baidu know: http://zhidao.baidu.com/question/5515529.html Fr = qrl3

The introduction to assembly language is boring. I just learned how to remember a large number of commands. There is no other way. I only need to practice more, read more, think more, and do not miss exercise questions, such as counter programming, without the knowledge of digital power, it would seem quite difficult, but it would not be too difficult to read more examples and write them several times. If you want to develop in this area, you must learn the terms of model power and digital power, in particular, the digital circuit depends on him later.

After getting started, you will think assembly is actually very simple, even simpler than advanced languages, and the design method is very intuitive. I have several input and output functions written by myself, it is convenient to view the value of registers and memory. If you are interested, I can send it to you.

4. From csdn community: http://topic.csdn.net/t/20010127/16/62223.html #

If you have a certain C/C ++ Foundation, learning ASM and CC ++ will be your best partner ......
We know that BC ++, BCB, or VC all have a compilation switch, which can translate CC ++ files into ASM files. Besides, each Assembly statement has its corresponding CC ++ statement as a comment.
For example, if... else, switch () case... break; while ...; do... while and other statements, you can see how to implement it in assembly language, and do not bother yourself.
In terms of learning languages and algorithms (without designing a specific environment), you can use CC ++ to complete compilation tasks. Then convert ...... You can ~
I don't know about VC. BC is as follows:
TCC-s Yourfile. c yourasm. ASM (TC)
Or
BCC-s Yourfile. c/CPP yourasm. ASM (BC)
Or
Bcc32-s Yourfile. c/CPP yourasm. ASM (BCB)
That is to say, add a compilation switch: "-s ".

If you are learning windows compilation, asm.yeah.net is good ~

V. From the csdn community: Compilation Book recommendation
Http://topic.csdn.net/t/20021125/12/1203066.html
Http://topic.csdn.net/t/20040815/09/3275490.html

Post 1: Tsinghua University Press, such as "ibm pc assembly language programming;
80x86 assembly language program design Yang Ji-Wen

Post 2: I think this is a good book:
<80386/80486 system programming practices>
Luxiaoqing, Minjiang University
Note: This book is the most systematic description of PM programming, with a complete PM kernel example (the code is incorrect and cannot be run ). It is helpful for learning exceptions and task mechanisms.
Applicable scope: medium and high level PM Learning (I strongly recommend)

<80x86 assembly language programming>
Yang Ji-he, Tsinghua University
Note: PM programming in the later part of this book is not systematic enough, but all examples can be run.
Applicable scope: Intermediate PM Learning (I strongly recommend)

<Microcomputer from 8086 to 80386>
Yongjiang University Zhou Mingde
Note: The PM theory is good, but it lacks practice.
Applicable scope: Intermediate PM Learning

Intel manual trilogy (English version)
Note: one sentence: official materials!
Applicable scope: Research on intermediate and intermediate Ia Architectures
: Http://www.intel.com/design/pentium4/manuals/index_new.htm

Post 3: Assembly Language
Author: Wang Shuang
Note: It is easy to difficult and highly correlated, which is very different from the editing sequence of assembly language textbooks in the past.
Applicable scope: getting started

Post 4: Intel assembly language programming (Fourth Edition) is very good. I used to want to learn assembly, but I can't continue to learn it. Now I have read this book for almost half a month, it can be understood and recommended.
Luo yunbin's "assembly language programming under Win32" talks about Win32 compilation, which is a bit similar to writing Windows programs using C. However, the book details the PE Structure in great detail, there are also examples. It is worth looking.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.