Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Disassembler instruction matching processing method

A processing method and assembler technology, applied in the direction of program control devices, etc., can solve the problems of manually writing matching codes and the huge workload of processing functions, and achieve the effect of intuitive and simplified expression methods and convenient writing

Inactive Publication Date: 2008-10-22
ZHEJIANG UNIV
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The workload of manually writing matching codes and processing functions is huge
[0005] However, comparing different instruction set reference manuals, it can be found that although the instruction sets are very different, the format for describing instructions is almost the same

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
  • Disassembler instruction matching processing method
  • Disassembler instruction matching processing method
  • Disassembler instruction matching processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with drawings and embodiments.

[0019] figure 1 It is a command without a domain. Because the fixed binary position in the instruction is represented by the ASCII characters of 0 and 1 in the instruction format representation string; so the instruction format representation string of this field that meets the present invention proposes is:

[0020] 0100101011111010.

[0021] figure 2 is a directive with two fields. For a field in an instruction, a string delimited by curly braces and separated by commas into three subfields; where the first subfield is the name of the field; the second subfield is the length of the field; the third subfield is The allowed or disallowed binary string matching of this field, its format is: if this subfield is empty, it means that all possible binary string permutations can match this field; if the first character of this subfield is +, it means that each following ...

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 method for processing instruction matching of a disassembler. A user represents the description of an instruction format on an instruction set manual as an 'instruction format representation string', and establishes the correlation of the 'instruction format expression string' and an 'instruction processing callback function'; the disassembler extends the 'instruction format representation string' as an 'expanded binary string of the instruction format representation string', further to establish the correlation of the 'expanded binary string of the instruction format representation string' and the 'instruction processing callback function'; when the disassembler disassembles, an input binary stream is matched with the 'expanded binary string of the instruction format representation string'; if the matching is successful, the corresponding 'instruction format expression string' is called; otherwise, the input string is not an effective instruction string. The representation method of the instruction format is intuitive and brief; the unfolding process of the representation is fixed without respectively compiling aiming at different platforms; and the utilization of the information provided by the presentation can conveniently quote an input string in the callback function.

Description

technical field [0001] The invention relates to a disassembler, in particular to a processing method for disassembler instruction matching. Background technique [0002] Disassembly is the reverse process of assembly, that is, a program that converts binary code into an assembly language representation of a functionally equivalent target platform. The disassembler is a tool to realize the disassembly function. A disassembler is an indispensable tool in reverse engineering. [0003] Disassemblers are processor-dependent in nature. Processors from different manufacturers or different instruction families may have completely different assembly instruction sets. Even processors of the same instruction family from the same manufacturer may have instruction set extensions. Therefore, corresponding disassemblers must be developed for different platforms. [0004] An important reference for developing a disassembler is the instruction set reference manual published by the proce...

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/44
Inventor 彭巍黄凯倪晓辉赵民德
Owner ZHEJIANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products