Re: [Freedos-user] gminer.exe game needs an emulation friendly wait_vsync()

2023-10-02 Thread Rugxulo via Freedos-user
Hi, I'm not very knowledgeable about systems programming or DPMI, but I don't think you can (normally) access ports under ring 3 (e.g. CWSDPMI). Try CWSDPR0.EXE (ring 0) or WDOSX (run "stubit") instead. Who knows what this was tested under (Win9x? JEMM386?). On Mon, Oct 2, 2023 at 7:14 PM Paul D

Re: [Freedos-user]  gminer.exe game needs an emulation friendly wait_vsync()

2023-10-02 Thread Paul Dufresne via Freedos-user
I discovered that if I comment out the two while (in vga.c): void wait_vsync() {     //while (inportb(0x3da) & 8);     //while (!(inportb(0x3da) & 8)); } Then the game under dosbox run just like under VirtualBox. I have tried all the available options for emulated graphics "card" under

Re: [Freedos-user]     Ré : New game for DOS using DJGPP - Open Source

2023-10-02 Thread Paul Dufresne via Freedos-user
Ok, I'll stop nagging after this message for a while. I added to the Makefile: timer.o: $(CC) $(CFLAGS) -mgeneral-regs-only -mno-red-zone $< -o $@ And now it compile. But when run: Page fault CR2=0042 in RMCB at eip 6; flags=3016 ... error=0004 which I believe was what I was receivi

Re: [Freedos-user]     Ré : New game for DOS using DJGPP - Open Source

2023-10-02 Thread Paul Dufresne via Freedos-user
I have been able to rebuild the game using prebult cross-compiler from build-djgpp project. When I add __asm__("iret"); program crash as soon as I launch it. Sorry not having the error now. I am trying to: __attribute__((interrupt)) void timer_handler(void *frame) { ticks++; ... but getting

Re: [Freedos-user] HIMEMX zip file dates

2023-10-02 Thread Eric Auer via Freedos-user
Hi Mercury and Jerome, I typically do modify the times to reflect the version number. Of course that's not necessary by any means, but it's a habit I started doing as a quick and easy contingency to help me in the event of files becoming crossed, e.g. if I were to accidentally drop files into

Re: [Freedos-user]     Ré : New game for DOS using DJGPP - Open Source

2023-10-02 Thread Paul Dufresne via Freedos-user
about: https://git.usebox.net/gold-mine-run/tree/src/timer.c Should the interrupt_handler for 0x1c interrupt, end with an iret?___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user