Disassembling method for single-chip microcomputer

A technology of disassembly and single-chip microcomputer, applied in the field of disassembly, can solve problems such as machine code errors and programs that cannot run normally, and achieve the effect of rapid analysis

Active Publication Date: 2012-07-18
漳州海银智慧信息科技有限公司
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the compiler is defective or the compilation control parameters are not set properly, the compiled machine code will have errors, which will cause the program to fail to run normally.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Disassembling method for single-chip microcomputer
  • Disassembling method for single-chip microcomputer
  • Disassembling method for single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] Examples, see figure 1 Shown, a kind of single-chip microcomputer disassembly method of the present invention comprises the following steps:

[0052] Step A, the display interface of the PC shows the input box, input the machine code file name to be analyzed, the disassembly target LST file name to be generated and the disassembly target ASM file name to be generated to the input box (such as figure 1 shown in box 101, box 102 and box 103);

[0053] Step B, the processor of the PC sets up a temporary file and initializes the temporary file to 0, sets the instruction length calculator and initializes the instruction calculator to 0, and the processor of the PC uses the address of the temporary file and The address of the machine code file is set to 0 (such as figure 1 shown in box 104);

[0054] Step C, the processor of the PC converts the machine code file into a binary format and starts to analyze the machine code file for the first time and obtain the total instruc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a disassembling method for a single-chip microcomputer. Instructions can be analyzed distinctly and quickly according to operation code layer-by-layer analysis instructions of an assembly language instruction system, address labels are added to skipped addresses and called addresses to facilitate program reading, an assembling device can be used for reassembling, and a machine code is analyzed twice to simultaneously generate an LST list file and an ASM reassembled file. Using the disassembling method for the single-chip microcomputer is contributive to checking and optimized compiling of the machine code after source code compiling, and can be used for finding lost source code.

Description

technical field [0001] The invention relates to the technical field of disassembly, in particular to a method for disassembling a single-chip microcomputer. Background technique [0002] The general development process of single-chip software is to compile the source code through assembler or C language compiler to generate machine code in HEX format or BIN format, and write this machine code into the FLASH program memory of the machine to run. If the compiler is defective or the compilation control parameters are not set properly, the compiled machine code will have errors, which will cause the program to fail to run normally. Sometimes you need to look at the optimization effect of the compiled code. In addition, when the original C language source code is lost, it is hoped that the source code can be found from the machine code. Therefore, it is necessary to design a disassembly tool software that can analyze machine code programs and convert machine codes into readable...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45
Inventor 卢琼辉
Owner 漳州海银智慧信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products