Log in

View Full Version : IDA Help


hwnd
February 6th, 2011, 17:16
I'm not sure exactly what this might be called or if its possible within IDA.

I'm working with indirect addressing (Motorola 16bit CPU) and I'd like to help make the disassembly a bit more readable. I did read a bit of the manual and what I found was a manual-operand change (ALT-F1) gives me what I am visually after but I'm not sure if this is correct.


So for the example, I have tons of instructions like
Code:
lde 3Ah, Z
and what I'd like to have is
Code:
lde PIN3A

I can do it with entering manual operand but the name doesn't correlate to the address. Where am I going wrong?

2423

hwnd
February 6th, 2011, 20:31
Well I dont know if what I did was right but at least I've managed to make somewhat readable code..

Code:

auto ea;

ea= FindCode(0, SEARCH_NEXT + SEARCH_DOWN);
while(ea != BADADDR)
{

if(GetOpnd(ea, 0) == "18h, Z"
{
OpAlt(ea,0, "PIN0";
MakeComm(ea, "PIN0 / ADC";
}
...etc
}