Currently, a difficult problem, hope all the bosses can help take a look.
Problem description: An executable file A.exe outputs a string in graphics mode, and calls outtextxy in bgi16.dll to output the string. I rewrote outtextxy, passed the pointer value of the string to my custom interrupt, and wrote the address into the file in the interrupt.
During operation, it is found that the offset address is correct, but the segment address is far away.
A.exe itself is more than 1M. Through IDA analysis, it can be seen that the segment address at the string is almost breaking through FFFF, but the value obtained by the interrupt is only about 350, which is obviously incorrect. I hope the bosses can give pointers.
Problem description: An executable file A.exe outputs a string in graphics mode, and calls outtextxy in bgi16.dll to output the string. I rewrote outtextxy, passed the pointer value of the string to my custom interrupt, and wrote the address into the file in the interrupt.
During operation, it is found that the offset address is correct, but the segment address is far away.
A.exe itself is more than 1M. Through IDA analysis, it can be seen that the segment address at the string is almost breaking through FFFF, but the value obtained by the interrupt is only about 350, which is obviously incorrect. I hope the bosses can give pointers.
