How do you write this section of assembly language to C? MCU

Updated on technology 2024-04-01
8 answers
  1. Anonymous users2024-02-07

    There is disassembly software on the Internet, you try it, thank you.

  2. Anonymous users2024-02-06

    In fact, it is not impossible to convert the assembly into C language, there is no problem with small programs, large programs may not be converted, I used to learn the assembly language when I was learning single-chip microcomputer, and then I found that writing in C will be more suitable for the development of large projects, so I learned C language, at that time I tried to write the assembly program I wrote before into a C language program, I converted it myself through ideas, such a conversion software does not seem to have it, I don't know about this! My experience is that it will be very difficult to convert a particularly logical program in C into assembly, which is my personal experience. It's still possible to convert the assembly into C language, but you may not have it through the software, so you can convert it through your own mind!

  3. Anonymous users2024-02-05

    At present, the decompilation software only exists to disassemble the machine instruction code into assembly, and there is no assembly to decompile the assembly into C language, because assembly is a low-level language, which is closest to the machine code (you can view the technical data of different hardware platforms), and each assembly instruction corresponds to a fixed machine code, so that it is feasible to disassemble, and the C language belongs to a high-level language, and the compiler does not have the ability to translate the assembly language into C or a higher level language. How to convert assembly language to C.

  4. Anonymous users2024-02-04

    If it's just a few simple lines, you can put the compiled exe file, use the system's built-in debug (windows key + r to open the running window and enter the path of the debug space exe) to open the debug, enter u to see a few lines of assembly**.

    If it's the source** Debug and run in the VS compiler, you can view it on the menu: Debug - Window - Disassembly, if it's other compilers Look carefully for the one with the disassembly.

    If you want information, [read from assembly language to windows kernel programming].Tan Wen. Shao Jianlei. The basic part of the book has the conversion of C to assembly.

  5. Anonymous users2024-02-03

    The process of turning a program written in a high-level language into a machine-readable binary** is called the compilation process. Because it needs to be compiled before it can be used, the assembly also needs to be connected. Utilize ASCII codes to be encoded and decoded.

  6. Anonymous users2024-02-02

    As far as I know, there is no software to convert assembly into C, and there are no books that systematically explain disassembly, so disassembly is also a skill. If you want to know how to disassemble into C language, you can refer to "Reading at Night: From Assembly Language to Windows Kernel Programming", this book teaches you to get started with disassembly, and the book "Windows 32-bit Assembly Language Programming" also talks about disassembly; Second, you can try to write a C language program by yourself, get the assembly**, and then compare the C program in turn, and you will find the law when you practice more.

  7. Anonymous users2024-02-01

    Estimates are unrealistic, unless you manually translate large quantities of work.

    For example, you can use OD to disassemble the assembly of a program**, and if you can convert it directly to C**.

    So what's the use of open source We can see the source of all programs**.

  8. Anonymous users2024-01-31

    After writing a correct C program, press F10 to step through the debugging, and finally you will see the assembled **.

Related questions
10 answers2024-04-01

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

8 answers2024-04-01

First, the register position is different:

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

9 answers2024-04-01

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

11 answers2024-04-01

There are several books on the market called "IBM-PC Assembly Language Programming". >>>More

11 answers2024-04-01

The industry consists of a facility operated by an individual, non-profit, public organization that provides surgical consultation and support. To generally, these facilities are associated with various activities such as the implementation of strategic and systematic planning; financial planning and budgeting; marketing objectives; information systems planning, evaluation, and selection; human resources approach and customary planning; Production scheduling and control planning. >>>More