In a new processor/language definition, is it possible to change the hex sigil from $
?
#6992
-
I'm experimenting with Ghidra for the old TI-99/4A, which used Is it possible to change the hexadecimal prefix string for a language? If not, which source code file(s) in the source are responsible for rendering integers in the disassembly listing? Is it part of the Sleigh system? Or does that system just supply numbers that a higher-level component renders? I'm guessing it's in the Sleigh code since other parts of the assembly code can be rendered from string literals in the It's hard to search for, so perhaps somebody knows the code well enough to point in the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I assume you mean for instruction operands? We don't normally use The code responsible for the listing display is in |
Beta Was this translation helpful? Give feedback.
I assume you mean for instruction operands? We don't normally use
$
as a prefix string for hex literals. We use0x
. Ghidra does not allow customization of this prefix (or suffix in the case ofFFFFh
).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.