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

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

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

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

2023-10-02 Thread Paul Dufresne via Freedos-user
Under VirtualBox, sound works (always... sound never worked for  me under QEMU). But always too fast, even if I slow CPU to 1%. I created a gminer.iso file with: mkisofs -o gminer.iso gminer where gminer is the directory where gminer.zip was extracted. Timer code is at:

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

2023-10-01 Thread Paul Dufresne via Freedos-user
Gold Miner game... Note: I was trying under FDT2308... where you was trying under FDT2310 (need to check this new release!). I just tried under MS-DOS 5 (under QEMU with sb16)... like you described... works sometimes... but always extremely too

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

2023-10-01 Thread Paul Dufresne via Freedos-user
Seems for me, it never run if with sound under QEMU ( -device sb16 ). Esc stop it with an error code. But it run (extremely too fast!) with gminer -ns -ns means no sound Works well under dosbox however... I think I had tested it only under DosBOX... sorry for that! Don't know for other

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

2023-10-01 Thread Jim Hall via Freedos-user
Juan wrote: > > I used DJGPP back in the 90s, and was a life changing experience for me: > > my first contact with GCC and free software. > > > > I never managed to finish any games back then, but I have released one > > recently, and the source code is available in case anyone is interested:

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

2023-09-11 Thread Paul Dufresne via Freedos-user
Le sam., 09 sept. 2023 03:46:59 -0400 Juan a écrit > Hi, > > I used DJGPP back in the 90s, and was a life changing experience for me: > my first contact with GCC and free software. > > I never managed to finish any games back then, but I have released one > recently, and