Comments on Editing Binaries in DOS

Post Comment

RickyB said:

What are the "minor modifications" needed to work on Windows 98?

25 Nov 2022 01:16 GMT (#1 of 2 comments)

Susam Pal said:

RickyB,

Here is an example DEBUG session from a Windows 98 system that contains the minor modifications to obtain the results demonstrated in this blog post:

C:\>DEBUG C:\WINDOWS\COMMAND\MODE.COM
-S 0 FFFF 'Invalid parameter'
1391:6B58
-D 6B50 6B6F
1391:6B50  65 6E 20 25 31 0D 0A 11-49 6E 76 61 6C 69 64 20   en %1...Invalid
1391:6B60  70 61 72 61 6D 65 74 65-72 20 0D 0A 49 6E 76 61   parameter ..Inva
-E 6B57 10 'No soup for you!'
-D 6B50 6B6F
1391:6B50  65 6E 20 25 31 0D 0A 10-4E 6F 20 73 6F 75 70 20   en %1...No soup
1391:6B60  66 6F 72 20 79 6F 75 21-72 20 0D 0A 49 6E 76 61   for you!r ..Inva
-U 0100 0105
1391:0100 E9482B        JMP     2C4B
1391:0103 80FC04        CMP     AH,04
-D 330 36F
117C:0330  40 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   @...............
117C:0340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
117C:0350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
117C:0360  00 00 00 00 00 FF 00 00-00 00 00 00 00 00 00 00   ................
-A
1391:0100 JMP 340
1391:0103
-A 340
1391:0340 MOV AH, 9
1391:0342 MOV DX, 34A
1391:0345 INT 21
1391:0347 JMP 2C4B
1391:034A DB 'Welcome to Soup Kitchen!', D, A, '$'
1391:0365
-N SOUP.COM
-W
Writing 07257 bytes
-Q

C:\>SOUP 0
Welcome to Soup Kitchen!

No soup for you! - 0
C:\>

I hope that helps!

26 Nov 2022 04:08 GMT (#2 of 2 comments)
Post Comment