中国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-14 04:09
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Question for Wengier: how to use DEBUG to modify ANSI
Printable Version  1,148 / 8
Floor1 阿海 Posted 2004-01-06 00:00
高级用户 Posts 188 Credits 748
Brother Wengier, I have a question about using DEBUG to modify ANSI
I want to use the DEBUG command to call the ANSI.SYS file and modify one byte at offset address 0215H, so that the traditional white-on-black display becomes some other color
How exactly do I use the E command to modify address 0215H, what is the format, then use the W command to write it to disk, and the Q command to quit
Please give the correct syntax
Floor2 willsort Posted 2004-01-09 00:00
元老会员 Posts 1,512 Credits 4,432
Re A Hai:

Strange, do you have to use debug? All kinds of hex editors can fully handle this.

If you really have to use it, then do it like this:

debug ansi.sys
e 0315
w
q

Note: with one e command, you can put the hex value you need after it, or you can leave it out and it will prompt you to enter it below. As for why the address is 0315, it's because debug loads non-executable files starting from offset 0100H of the current segment by default.
Floor3 阿海 Posted 2004-01-10 00:00
高级用户 Posts 188 Credits 748
I want to change one byte at 0215H, changing 07H to 02H. How should I do it?
Also, what hex editors are there? Could you give me a hint?
Are you the leader of Little Sea Boat?
I just love you to death!!!!!!!!!!!!!!!!
Floor4 Roy Posted 2004-01-10 00:00
管理员 Posts 1,633 Credits 4,869
The following is quoted from A Hai's post at 2004-1-10 13:32:04:
I want to change one byte at 0215H, changing 07H to 02H. How should I do it?
    Also, what hex editors are there? Could you give me a hint?
         Are you the leader of Little Sea Boat?
                I just love you to death!!!!!!!!!!!!!!!!
The steps are as follows~
C:\WINDOWS\COMMAND>DEBUG ANSI.SYS
-e 215
xxxx:0215 07.02 {enter 02 and then press }
-w
-q
C:\WINDOWS\COMMAND>_
Floor5 阿海 Posted 2004-01-10 00:00
高级用户 Posts 188 Credits 748
Does anyone have the complete versions of DOS330 and DOS441?
Please give a link
Floor6 阿海 Posted 2004-01-10 00:00
高级用户 Posts 188 Credits 748
Or could someone find which byte the 07H is in within the ANSI.SYS file of version 7.1
Because in version 330 the 07H is at byte 0215, and in version 441 it is at byte 0378H
Thanks, everyone
Floor7 阿海 Posted 2004-01-10 00:00
高级用户 Posts 188 Credits 748
Everyone, please help? Hurry up and answer this? I'm asking for the offset address in the DOS 7.1 version of ANSI.SYS!
Brother Wengier, you haven't had time for a long while to answer this little sister's question?
Floor8 阿海 Posted 2004-01-11 00:00
高级用户 Posts 188 Credits 748
Bump
Floor9 Michael Posted 2005-12-03 14:36
钻石会员 Posts 3,041 Credits 10,056
Bump
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023