中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 13:51
47,812 topics / 349,910 posts / today 0 new / 48,264 members
DOS汉化世界 & 中文系统 (中文化室) » Seeking help with DOS software modification
Printable Version  1,991 / 1
Floor1 weishengshou Posted 2009-10-20 16:58
新手上路 Posts 6 Credits 19
I was localizing a software. The English in the graphical interface were all output using the puttextxy function, which doesn't support Chinese. Later, I came up with a way to write my own function that supports Chinese to replace it. I wrote the function.
But when adding it to the DOS program, I found some problems:
1. There's not enough space, no place to add. I wonder if I can add a section to hold my code.
2. Modifying the relocation table is extremely troublesome. The program is very large, with tens of thousands of table entries. I need to modify the relocation table to support the function I added.
I don't know if any experts have solved these two contents before?
Or is there any tool that can be used, like as easy as modifying PE.
I can handle adding functions in my own small program, but when it comes to the actual software, it's a headache. The software is too large.
Thank you very much and urgent help needed
Floor2 本是 Posted 2009-10-23 14:33
银牌会员 Posts 790 Credits 2,227
Actually, it's quite simple! Compile an interrupt-resident program, hook it to an interrupt number that is unlikely to be called by ordinary software, and then in the places where needed in the software, call that interrupt number instead of a subroutine.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023