China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 17:55
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » Seeking help with DOS software modification View 1,719 Replies 1
Original Poster Posted 2009-10-20 16:58 ·  中国 北京 海淀区 联通
新手上路
Credits 19
Posts 6
Joined 2007-03-13 07:11
19-year member
UID 81575
Gender Male
Status Offline
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
Floor 2 Posted 2009-10-23 14:33 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
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.
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Forum Jump: