Hard-coded parameter is not rendered #7003
Unanswered
hippietrail
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I would put the Another useful script for sleigh development if you're not aware of it would be the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got some instructions where the single operand is a 1-byte offset from a known address,
0x8300
in this case. In this form they work fine.But I've also tried supporting specific outputs when the operand has a certain value. In this case the operand
0x75
, which would be equivalent to the address0x8375
should render as@key
. But the operand is not rendered, just the instruction.This is to mimic the output of my reference disassembler for this arch as seen in the comment column at the right. I do realize the 'proper' way to do this is at a different level where I just render it as an address and elsewhere I have symbols with the same values as those addresses. But I don't know how to do that in Ghidra yet, and my feeling is that things like this should also work.
No error results and the instruction pointer doesn't get out of sync so it's working except for the rendering.
Note also that the next instruction, which has two operands does render! Here's the code for that:
Beta Was this translation helpful? Give feedback.
All reactions