I tried running it in the debugger, seems that it tries to set up DIVE the way that other program did, which silently fails while seeming to succeed, then it cleanly exits.
Perhaps someone more knowledgeable can look at it, but I think it needs some rewriting to properly use DIVE in Warp
Previously I removed the def and got a trp, but not this time and really removing the def might need the program to morph to PM.
For getting the debug data, could just add -g to CFLAGS and LDFLAGS. I changed the makefile like so
--- makefile.orig 2023-06-14 15:22:06.000000000 -0700
+++ makefile 2023-06-14 15:47:28.000000000 -0700
@@ -4,23 +4,27 @@
# Compile::Resource Compiler
# Compile::GNU C
# Make: make
+
+CFLAGS=-Wall -Zomf -O2 -c
+DEBUGFLAGS=-g
+
all : beehive.exe
beehive.exe : beehive.obj animate.obj blitgen.obj pcxload.obj beehive.def beehi
ve.res
- gcc -Zomf -L. -lmmpm2 beehive.obj animate.obj blitgen.obj pcxload.obj beehive.def beehive.res -o beehive.exe
+ gcc $(DEBUGFLAGS) -Zomf -L. -lmmpm2 beehive.obj animate.obj blitgen.obj
pcxload.obj beehive.def beehive.res -o beehive.exe
wrc beehive.res
beehive.obj : beehive.c beehive.h
- gcc -Wall -Zomf -c -O2 beehive.c -o beehive.obj
+ gcc $(CFLAGS) $(DEBUGFLAGS) beehive.c -o beehive.obj
animate.obj : animate.c
- gcc -Wall -Zomf -c -O2 animate.c -o animate.obj
+ gcc $(CFLAGS) $(DEBUGFLAGS) animate.c -o animate.obj
blitgen.obj : blitgen.c
- gcc -Wall -Zomf -c -O2 blitgen.c -o blitgen.obj
+ gcc $(CFLAGS) $(DEBUGFLAGS) blitgen.c -o blitgen.obj
pcxload.obj : pcxload.c
- gcc -Wall -Zomf -c -O2 pcxload.c -o pcxload.obj
+ gcc $(CFLAGS) $(DEBUGFLAGS) pcxload.c -o pcxload.obj
beehive.res : beehive.rc
wrc -r beehive.rc
Usually the DEBUGFLAGS line can be commented out. This way it is easy to change the CFLAGS as well by passing CFLAGS/DEBUGFLAGS on the command line.
make 'DEBUGFLAGS=-Zmap -g' 2>&1 | tee make.out
In compile cmd gives a map file and debug data for example.
Edit: looking further, it does seem to load DIVE, though the code actually uses DosLoadModule to load GAMESRVR, which isn't on my system, yet the map file shows DIVE being used