Current Project: Disassembler - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Current Project: Disassembler

Description:

... def file for proper output format (called OPFORMAT) ... decode mask, proper decode result) ... if it matches decode result, then this is the proper instruction ... – PowerPoint PPT presentation

Number of Views:109
Avg rating:3.0/5.0
Slides: 5
Provided by: capsl
Category:

less

Transcript and Presenter's Notes

Title: Current Project: Disassembler


1
Current Project Disassembler
  • Input 32-bit instruction (binary word)
  • Output assembly code based on fields in the
    instruction ( add r1, r2, r3 )
  • To do this
  • Edit machine.def file for proper output format
    (called OPFORMAT)
  • Use example disassembler (simplescalar) to
    generate own code

2
Disassembler Code
  • Arrays of fields in machine.def
  • (name, opform, decode mask, proper decode result)
  • Instruction Decoder masks instruction passed in
    with each decode mask, if it matches decode
    result, then this is the proper instruction

3
Disassembler Code
  • Code to print instruction ( print parts of
    instructions based on characters in OPFORM field )

4
Challenges / Other Work
  • Need to decode instruction fields within the
    instruction for comparisons (assembler should
    output specific comparison) complete but not
    yet tested
  • Plug Disassembler into simplescalar to test full
    functionality
Write a Comment
User Comments (0)
About PowerShow.com