tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] editing tccpe.c


From: Carlos Montiers
Subject: [Tinycc-devel] editing tccpe.c
Date: Tue, 7 May 2013 01:42:11 -0400

Hello. I want change the default message of my compiled files from:
'This program cannot be run in DOS mode'
by:
'This program must be run under Win32'

I do it using this in line 499 of tccpe.c

},{
/* BYTE dosstub[0x40] */
/* 14 code bytes + "This program cannot be run in DOS mode.\r\r\n$" + 6 * 0x00 */
0x0e,0x1f,0xba,0x0e,0x00,0xb4,0x09,0xcd,0x21,0xb8,0x01,0x4c,0xcd,0x21,
'T','h','i','s',' ','p','r','o','g','r','a','m',' ','m','u','s','t',' ',
'b','e',' ','r','u','n',' ','u','n','d','e','r',' ','W','i','n','3','2',
0x0d,0x0a,0x24,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
},

but I want remove the last 11 0x00

I tried do it replacing dosstub[0x40]  in line 237 by dosstub[0x35]  and 0x00000080 by 0x00000075 in line 498. But I get bad result.

Please can someone help me please indicating the modifications needed for remove the last 0x00?

Carlos.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]