I am reverse engineering a very old LE MS-DOS binary and have convinced Ghidra that there are two segments in the file, one is the code segment and another one is the data segment.
Now when I look ad the disassembled code in a function of the code segment, I see this:
cseg:00074b82 66 c7 05 MOV word ptr [DAT_00002670],0x1a00
70 26 00
00 00 1a
The problem is that I can not work with
DAT_00002670, because Ghidra thinks that it is a reference to the code segment, but in reality it is a reference to the data segment through the DS register, so
ds:0x2670 instead of
I tried to edit the reference with the references editor, but there is no option to set the destination segment.
How can I change the reference, so Ghidra recognize that it goes to the data segment?