Search found 204 matches

by Cpcdos
Sep 17, 2018 9:00
Forum: General
Topic: FB Crash longjmp/alarm in screen mode
Replies: 0
Views: 205

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: 774

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: 774

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: 774

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: 774

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: 774

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: 509

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: 509

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: 938

Re: ASM junk error

Okay thank you!


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

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: 938

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: 938

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...
by Cpcdos
May 18, 2017 15:05
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 1344

Re: Strange crash: WHAT IS "inflate_fast()" ???

Hi ! I've resolved my problem ! I've download the LIBZ library source, after more hours i've conclued that it use the "inflat_fast()" inclued in GCC. So, i've modified declarations and functions names for use "_inflat_fast()" in the LIBZ ASM code, instead of "inflat_fast()&q...
by Cpcdos
Feb 20, 2017 15:13
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 1344

Re: Strange crash: WHAT IS "inflate_fast()" ???

Hi, thank you for your reply.

That's what it seemed to me after some brief research.
I also think that there are previous memory allocation problems because, the original PNG loader code crash on the same function .. :(

I'll investigate that!
Thank you :)
by Cpcdos
Feb 18, 2017 10:22
Forum: DOS
Topic: Strange crash: WHAT IS "inflate_fast()" ???
Replies: 4
Views: 1344

Strange crash: WHAT IS "inflate_fast()" ???

Hi everybody! I'm based on this code ( https://github.com/freebasic/fbc/blob/master/examples/files/libpng/png.bas ) for have an PNG loader example, and i've strange problem when I execute this. ************************************************************ Please ignore this big DEBUG lines : IF CPCDO...

Go to advanced search