Search found 207 matches

by Cpcdos
May 19, 2019 10:59
Forum: DOS
Topic: gpp 9.10 upgrade strange error compilation
Replies: 1
Views: 6905

gpp 9.10 upgrade strange error compilation

Hi, My project use GCC.EXE and GPP.EXE for create libs and FreeBasic for compile all in an .exe On delorie FTP ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/ I would like to upgrade my gpp 7.2 and gcc 7.2 TO --> gcc 9.10 , and gpp 9.10 . I've merge/remplace manually bin, includes ... directory, i've...
by Cpcdos
May 19, 2019 9:50
Forum: DOS
Topic: Fb upgrade problems
Replies: 2
Views: 7195

Re: Fb upgrade problems

Oops sorry for my late reply!
I've renommed all "integer" to "long" and "uinteger" to "ulong" in my custom bi --> c++ file, I can compile, so this works !
Thank you ;)
by Cpcdos
Mar 19, 2019 12:44
Forum: DOS
Topic: Fb upgrade problems
Replies: 2
Views: 7195

Fb upgrade problems

Hi, I've upgrade FreeBasic 1.05.0 to 1.06.0 and i can't compil my project. More "undefined reference" to external "C" functions (compiled with GPP for dos) in my libs (cpclib.a) Why this new update cause this ? What are modifications ? http://cpcdos.e-monsite.com/medias/images/fb...
by Cpcdos
Sep 17, 2018 9:00
Forum: General
Topic: FB Crash longjmp/alarm in screen mode
Replies: 0
Views: 1338

FB Crash longjmp/alarm in screen mode

Hi, i return here, in fact i've found more details about my previous subject : https://www.freebasic.net/forum/viewtopic.php?f=4&t=26740 For be short, With screen 0 mode, If i use - longjmp() in my code --> it's works . - siglongjmp() during alarm() interrupt --> it's works . With any screen mod...
by Cpcdos
Jun 28, 2018 15:05
Forum: DOS
Topic: longjmp from signal handler vs Screen mode CRASH
Replies: 7
Views: 8929

Re: longjmp from signal handler vs Screen mode CRASH

Thank! And Thank you for yours descriptions about inner workings, it looks a lot like what I investigated, this reassures me :)


I'll let you know if have found an alternative..

Thank a lot coderJeff !!
by Cpcdos
Jun 26, 2018 10:35
Forum: DOS
Topic: longjmp from signal handler vs Screen mode CRASH
Replies: 7
Views: 8929

Re: longjmp from signal handler vs Screen mode CRASH

I've resolv my problem ..... It's in FreeBasic source code! I must add a line for resolve this.. In function fb_dos_timer_handler() at line : https://github.com/freebasic/fbc/blob/1b86978a77bdc0c805faaf735d5ef8debc48592c/src/gfxlib2/dos/gfx_dos.c#L337 If i use longjmp, fb_dos.locked every equal to T...
by Cpcdos
Jun 26, 2018 9:14
Forum: DOS
Topic: longjmp from signal handler vs Screen mode CRASH
Replies: 7
Views: 8929

Re: longjmp from signal handler vs Screen mode CRASH

Thank you for your reply, i've take account yours comments. So, i've investigate in FreeBasic source code, and i've discovered interesting informations! In fact, during switching with longjmp, application NOT CRASH, but screen mode is "freezed" for ever, code working again in background. I...
by Cpcdos
Jun 03, 2018 8:53
Forum: DOS
Topic: longjmp from signal handler vs Screen mode CRASH
Replies: 7
Views: 8929

Re: longjmp from signal handler vs Screen mode CRASH

Thank you for your reply, I use FreeDos and NTVDM (from Windows XP), i developp from XP I've extremely simplified my code, ( and adapt for task_1,task_2 only ) DJGPP : struct list_jmp { char Stack_jmp[4096]; jmp_buf Buffer_jmp; } list_jmp[123]; struct itimerval timer_instance; struct sigaction sig_a...
by Cpcdos
May 29, 2018 7:32
Forum: DOS
Topic: longjmp from signal handler vs Screen mode CRASH
Replies: 7
Views: 8929

longjmp from signal handler vs Screen mode CRASH

Hi, I want know, why when I use longjmp/siglongjmp during signal handler (From DJGPP C++ code) from standard screen DOS mode (or screen 0 FB command) this work perfectly . But if i using this, with another screen mode or resolution (With Screen or SetScreen FB command) ... this crashes immediately !...
by Cpcdos
May 29, 2018 7:24
Forum: DOS
Topic: Modify interrupt eip return (Preemptive task-switching)
Replies: 4
Views: 7230

Re: Modify interrupt eip return (Preemptive task-switching)

Thank you for your replies I've already do this, and i don't know why this crash, i've investigate during more days, i've test with 1 task ditectly on code, it's crashes, then i test to modify just 1 register pour tests only and i conclude it's crashes here when i want modify the famouse EIP registe...
by Cpcdos
May 11, 2018 9:15
Forum: DOS
Topic: Modify interrupt eip return (Preemptive task-switching)
Replies: 4
Views: 7230

Modify interrupt eip return (Preemptive task-switching)

Hi, I investigate to create preemptive multitasking tool project for FB/ DOS, but i've strange problem First, this is my base : INIT_INTERRUPT() START_INTERRUPT() while(1) print "# Main Wend End ' ------------------------------------ sub Task1() while(1) print " #### Task1" wend end s...
by Cpcdos
Dec 03, 2017 16:12
Forum: DOS
Topic: ASM junk error
Replies: 9
Views: 3578

Re: ASM junk error

Okay thank you!


Regards
by Cpcdos
Nov 28, 2017 18:27
Forum: DOS
Topic: ASM junk error
Replies: 9
Views: 3578

Re: ASM junk error

Thank you for replies guys ! I think that effectively, Intel syntax in GAS used to be quite buggy (And GCC generation have same problem) Finally, i've used Dim pp As ubyte ptr = cptr(Ubyte Ptr, @MyVariable) dim result as Uinteger = cuint(pp[0]) Shl 24 Or cuint(pp[1]) Shl 16 Or cuint(pp[2]) Shl 8 Or ...
by Cpcdos
Nov 25, 2017 14:43
Forum: DOS
Topic: ASM junk error
Replies: 9
Views: 3578

Re: ASM junk error

True coder can code out of home aha :D Thank you for your reply Same problem, junk error, he can't reconize syntax.. it's strange, i've tested more combinaisons with without [], swap "dword ptr" etc.. i can write the Freebasic code for swap 0-7 <-> 24-32 & 8-15 <-> 16-23 like Dim pp As...
by Cpcdos
Nov 24, 2017 15:34
Forum: DOS
Topic: ASM junk error
Replies: 9
Views: 3578

ASM junk error

Hi guys I've want to test this program https://www.freebasic.net/forum/viewtopic.php?f=7&t=3545 with -lang fb, -gen gcc (or gas) And i've this error : http://cpcdos.e-monsite.com/medias/images/junk-error.png i've already coded with inline asm.. hmm it's strange i'm lost lol. he can't take accoun...