Delphi Embedded Assembly [1]-assembly language and machine language

Source: Internet
Author: User
I am a non-specialist, and now I am in touch with the compilation. I am so ashamed to learn!
The primary textbook is the compilation language of Miss Wang Shuang from Tsinghua University.

The assembly language was previously a machine language.

Machine language is a collection of machine commands, and machine commands are a series of binary numbers. Computers convert them into a series of high and low levels to implement computation.
The CPU is used to run machine commands on a PC. Different CPUs have different commands, so some assembly language is only for a series of CPUs.

Instructor Wang Shuang gave an example of "Welcome to MASM" output in machine language:

<Br/> 00011110 <br/> 101110000000000000000000 <br/> 01010000 <br/> 101110001100011000001111 <br/> 1000111011011000 <br/> 1011010000000110 <br/> 1011000000000000 <br/> 1011011100000111 <br/> 101110010000000000000000 <br/> 1011011000011000 <br/> 1011001001001111 <br/> 1100110100010000 <br/> 1011010000000010 <br/> 1011011100000000 <br/> 1011011000000000 <br/> 1011001000000000 <br/> 1100110100010000 <br/> 1011010000001001 <br/> 10001101000101100010101000000000 <br/> 1100110100100001 <br/> 1011010000001010 <br/> 10001101000101100011000100000000 <br/> 1100110100100001 <br/> 1011010000000110 <br/> 1011000000010100 <br/> 1011011100011001 <br/> 1011010100001011 <br/> 1011000100010011 <br/> 1011011000001101 <br/> 1011001000111100 <br/> 1100110100010000 <br/> 1101010000000010 <br/> 1101011100000000 <br/> 1101000000001100 <br/> 1101001000010100 <br/> 1100110100010000 <br/> 1011010000001001 <br/> 10001101000101100000000000000000 <br/> 1100110100100001 <br/> 11001011 <br/>
I copied it out with reverence for the computer's predecessors, and I do not know whether it is right or not.

Later there was a compilation, for example:
MoV ax, BX {equivalent to ax: = Bx} in Delphi}
Replace machine commands:
1000100111011000

This is closer to human thinking, but in the end, a compiler must translate mov ax and BX back to 1000100111011000 to be accepted by computers.

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.