Programming in Assembly Language 5, Programming in Assembly Language

Updated on technology 2024-05-17
5 answers
  1. Anonymous users2024-02-10

    The general idea is to create two storage areas, one for the source string and one for the modified string. Create two loops, one for whitespace and one for string end symbols, both of which are compared with ASCII codes.

  2. Anonymous users2024-02-09

    We just learned, we won't do this!

  3. Anonymous users2024-02-08

    Assembly language: Assembly language is a low-level language, also known as symbolic language, for electronic computers, microprocessors, microcontrollers, or other programmable devices. In assembly language, mnemonics are used instead of opcodes for machine instructions, and address symbols or designators are used instead of addresses for instructions or operands.

    In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process. Generally speaking, a specific assembly language and a specific machine language instruction set are one-to-one, so they are not directly portable between different platforms.

    Assembly language is not as widely used in programming as most other programming languages. In today's practical applications, it is usually used in low-level, hardware operation and demanding program optimization occasions. Assembly language is required for drivers, embedded operating systems, and real-time runners.

    Machine language: Machine language is a collection of machine instructions that can be directly recognized and executed by a computer in binary **. It is the operational function that the designer of the computer gives to the computer through the hardware structure of the computer.

    Machine language is flexible, straightforward, and fast. The machine language of different types of computers is not compatible, and programs written according to the machine instructions of one computer cannot be executed on another computer.

    The traces of modern machine language have all but disappeared (mainly in the process of compiler transcoding) and have been replaced by assembly language. In assembly language, each instruction has a corresponding machine code, and after compiling by the compiler, the assembly ** is directly converted into a machine language that can be executed directly by the CPU.

    C language: C language is a general-purpose computer programming language that is widely used. C is designed to provide a programming language that can compile in a simple way, handle low-level memory, generate a small amount of machine code, and run without any runtime support.

    Although C provides many low-level processing features, it still maintains a good cross-platform character, and C programs written in a standard specification can be compiled on many computer platforms. Some C languages** can even be ported directly to embedded processor (microcontroller) platforms.

    The relationship between the three (from the hardware layer to the software layer): machine language - assembly language - C language.

  4. Anonymous users2024-02-07

    Assembly language is the underlying language that is directly operated on the hardware, it can be said that the machine language is a binary language with 01 codes, and the machine can directly recognize that the C language is a process language on the assembly language, which is clearer and easier to understand than assembly.

  5. Anonymous users2024-02-06

    From beginner to advanced languages...

Related questions
10 answers2024-05-17

Assembly language can be said to be machine language, and what deals directly with hardware is to transform computer language into 1001 that machines can recognize. It's not going to go out of style, at least not for this decade. It's mostly about the hardware side though. >>>More

4 answers2024-05-17

24) Designator: mm Function: Find the extreme value of a single-byte hexadecimal unsigned data block. >>>More

8 answers2024-05-17

First, the register position is different:

1. CS: ** segment register; >>>More

12 answers2024-05-17

Again, it's 1101000000

CPU It doesn't matter if you're a memory unit or a register. >>>More

9 answers2024-05-17

Their instruction sets, with different addressing methods, are equivalent to two machines operating in their own ways. >>>More