OT: IDA interface help - equ

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Hi all,

I'm hoping that with the number of IDA users we've got here somebody can help with a hopefully simple IDA UI question.

I want to remove some of the literals from my disassembly, for example in the following line I'd want to replace $104000 with a label of COLRAM1. In the olden days on the Amiga I'm pretty sure I'd just add an EQU definition in my source - COLRAM1 equ $104000 or bring it in from system headers.

Any idea how to do this in IDA (pro v6.1)? I've tried searching but I think I'm missing the terminology IDA uses for this which is why I can't figure out how.

Code:
ROM:00006F9E                 lea     ($104000).l,a1  ; test RAM @ 0x104000 (colour RAM1)

cheers
 

Mitchell Gant

Active member
vacBacker
Feedback
2 (100%)
Credits
888CR
I just place the cursor on the "104000" and hit 'o' on the keyboard to give an automatic offset name. Then you can hit 'n' to rename to a suitable tag like your COLRAM1.

I think you have to have the address 104000 in a segment though, or it doesn't work.

I dislike the segment part altogether, but I guess it's because of the 8086 history... yuck.

Anyone got any idea how to make IDA do bank switched memory? Only way I've done it is to have two (or more) different projects, one for each bank.
 

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Thanks for the suggestion Major :)

This would be outside my current address range so I'm probably going to leave it unless it becomes too annoying remembering the offsets. I'd have thought there was some way of adding a define.

As for your problem, can't you define a couple of segments and repeat the offsets within each segment? So RAM1:0000-ffff, RAM2:0000-ffff...

Although something feels like that wouldn't work, but I can't put my finger on it at the mo.
 
Top