When I have an int value that I want to be displayed as an hex in the disassembly, it's not formatted the same way according to it's an operand or a data :

movea.l #0x1a4, A1

but :

dw 9500h

I'd like to have dw 0x9500 (especially because I use Python scripts on these values) but I didn't find the option.

  • 2
    why is the problem with the way Ghidra displays this value and using python script)? In the script you should get the value so you can convert it to whatever string representation you want or not. Jun 17, 2021 at 15:38


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.