| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| readme.txt | 2019-05-09 | 1.4 kB | |
| PROLOG.OBJ | 2019-05-08 | 1.3 kB | |
| prolog.asm | 2019-05-08 | 7.9 kB | |
| PNGLIB.C | 2019-05-08 | 637 Bytes | |
| ovl.h | 2019-05-08 | 1.2 kB | |
| MATH.OBJ | 2019-05-08 | 330 Bytes | |
| math.asm | 2019-05-08 | 2.2 kB | |
| make2.bat | 2019-05-08 | 531 Bytes | |
| make.bat | 2019-05-08 | 2.6 kB | |
| LD_FILE.EXE | 2019-05-08 | 27.1 kB | |
| lnk_echo.txt | 2019-05-08 | 223 Bytes | |
| HELPER.C | 2019-05-08 | 7.4 kB | |
| LD_FILE.C | 2019-05-08 | 15.2 kB | |
| GDI.C | 2019-05-08 | 5.7 kB | |
| dll.bat | 2019-05-08 | 766 Bytes | |
| C0S.OBJ | 2019-05-08 | 359 Bytes | |
| CPY_METH.C | 2019-05-08 | 22.1 kB | |
| APNG.C | 2019-05-08 | 4.2 kB | |
| C0S.ASM | 2019-05-08 | 1.2 kB | |
| Totals: 19 Items | 102.2 kB | 0 | |
1)usage in dosbox:
ld_file.exe <file.png>
example 1: ld_file.exe ..\pnglib.png
example 2: ld_file.exe ..\01.png
If not dosbox, we maybe modify graphy_mode in
ld_file.c\int show_bmp_fail(void)
{
else if(biBitCount==16)/* 64K color */
{grahy_mode(0x117);/* 1024 x 768 x RGB565 */
...
}
else if(biBitCount==24)/* 16M color */
{grahy_mode(0x117);/* 1024 x 768 x RGB565 */
...
}
else if(biBitCount==32)/* 4G color */
{grahy_mode(0x117);/* 1024 x 768 x RGB565 */
...
}
}
2)how to build ld_file.exe:
2.1)modify the path of turbo c.
In my computer, it is in D:\program\tc2.0
so i write this path in all batch files as below.
But it is maybe not your bc path.
You can modify them in batch files.
2.2)compile and link:
make.bat will make ld_file.exe, after compile over 20 files which are in [source] folder.
That's original designed by Thomas.
mak2.bat will make ld_file.exe, after compile ld_file.c and gdi.c and pnglib.c.
Because the later #include over 20 files which are in [source] folder.
That's quick and dirty technique by Leisure bamboo.
dll.bat will make ld_file.exe by ld_file.c and gdi.c, and make png.ovl by pnglib.c.
After wrap all png function in the ovl, so all variable(which in ld_file.c)
will NOT worry about their names conflict with
over 20 files(which are in [source] folder).