Skip to content

In a new processor/language definition, is it possible to change the hex sigil from $? #6992

Answered by GhidorahRex
hippietrail asked this question in Q&A
Discussion options

You must be logged in to vote

I assume you mean for instruction operands? We don't normally use $ as a prefix string for hex literals. We use 0x. Ghidra does not allow customization of this prefix (or suffix in the case of FFFFh).

The code responsible for the listing display is in Scalar.java on line 286. But I can't guarantee that changing that won't have weird side-effects, but that is where it is located.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hippietrail
Comment options

@GhidorahRex
Comment options

@hippietrail
Comment options

Answer selected by hippietrail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants