OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x
FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
+PCX2VRL=$(DOSLIBDIR)/hw/vga/pcx2vrl
DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)
VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
!include $(DOSLIBDIR)/extdep.mak
-all: $(EXEC)
+all: $(EXEC) datatest
+
+cute.vrl: data/cute.pcx $(PCX2VRL)
+ $(PCX2VRL) -i data/cute.pcx -o cute.vrl -p cute.pal -tc 254
+ # you can then test this against TESUTO.EXE by typing: TESUTO CUTE.VRL CUTE.PAL
+
+datatest: cute.vrl .symbolic
+
+# doslib PCX to VRL converter native host binary
+$(PCX2VRL): $(DOSLIBDIR)/hw/vga/pcx2vrl.c
+ cd $(DOSLIBDIR)/hw/vga && make pcx2vrl
#$(16LIBOBJS) => 16.lib bug....
# @wlink @tmp.cmd
wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ)
tesuto.$(OBJ): $(SRC)tesuto.c
- wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c
+ wcl $(FLAGS) $(DOSLIB_CINCLUDE) $(WCLQ) -c $(SRC)tesuto.c
#tesuto.exe: tesuto.$(OBJ)
# wcl $(WCLQ) -mh -d2 tesuto.$(OBJ)
#tesuto.$(OBJ): $(SRC)tesuto.c
# library deps 16-bit huge
dl_vga.lib:
- cd $(DOSLIBDIR)/hw/vga/dos86h && ./make.sh
+ cd $(DOSLIBDIR)/hw/vga && ./make.sh
+ cp $(DOSLIBDIR)/hw/vga/dos86h/vga.lib dl_vga.lib
dl_cpu.lib:
- cd $(DOSLIBDIR)/hw/cpu/dos86h && ./make.sh
+ cd $(DOSLIBDIR)/hw/cpu && ./make.sh
+ cp $(DOSLIBDIR)/hw/cpu/dos86h/cpu.lib dl_cpu.lib
dl_dos.lib:
- cd $(DOSLIBDIR)/hw/dos/dos86h && ./make.sh
+ cd $(DOSLIBDIR)/hw/dos && ./make.sh
+ cp $(DOSLIBDIR)/hw/dos/dos86h/dos.lib dl_dos.lib
modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c
wcl $(FLAGS) -c $(SRCLIB)modex16.c
#include "src/lib/doslib/hw/dos/dos.h"
-typedef unsigned char far *VGA_RAM_PTR;
-VGA_RAM_PTR vga_graphics_ram = (VGA_RAM_PTR)MK_FP(0xA000,0x0000);
-unsigned char vga_stride = 80; // 80 x 4 = 320 for 320-pixel wide modes
+//typedef unsigned char far *VGA_RAM_PTR;
+//VGA_RAM_PTR vga_graphics_ram = (VGA_RAM_PTR)MK_FP(0xA000,0x0000);
+//unsigned char vga_stride = 80; // 80 x 4 = 320 for 320-pixel wide modes
/*static inline void vga_write_sequencer(unsigned char i,unsigned char c) {
outp(0x3C4,i);