NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
50.97k stars 5.81k forks source link

x86 decompiler and emulator are missing test registers support #5662

Closed bog-dan-ro closed 10 months ago

bog-dan-ro commented 1 year ago

As said in the title gidhra doesn't handle test registers (https://en.wikipedia.org/wiki/Test_register and https://retrocomputing.stackexchange.com/questions/21963/how-were-the-test-registers-used-on-the-i386-and-the-i486 )

bog-dan-ro commented 1 year ago

Actually the decompiler used to support test registers but they were commented out here https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Processors/x86/data/languages/ia.sinc#L3164