Search found 196 matches

by Cpcdos
Dec 03, 2017 16:12
Forum: DOS
Topic: ASM junk error
Replies: 9
Views: 268

Re: ASM junk error

Okay thank you!


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

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

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

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

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

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

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...
by Cpcdos
Feb 18, 2017 10:11
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 569

Re: How detect memory leak / overflow

Hmm.. MEM He can't detect DPMI memory :/ Never mind

But thank you for your help :)
by Cpcdos
Jan 13, 2017 8:21
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 569

Re: How detect memory leak / overflow

Hello grindstone! Thank you for your reply, under freedos, the FRE value never goes back, like if FRE can't see the "deallocated memory" :( I can block any irq, and use malloc in loop until saturation, and get number bytes used and freeing this. So apparently, he does not exist a tool for ...
by Cpcdos
Jan 12, 2017 11:04
Forum: DOS
Topic: How detect memory leak / overflow
Replies: 4
Views: 569

How detect memory leak / overflow

Hi everyone! :)
I want know how detect a memory leak/overflow from my dos executable compiled wih freebasic ? (eventually with -g)

GDB tool for DOS does not this :(

Regards!
by Cpcdos
Oct 04, 2016 7:59
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 727

Re: Mouse horrible resolution (8x8)

Hi, I appreciate your help! I've took my time for testing your solutions, and i've same problem for all solutions ! other mouse driver, other screen resolutions, .... ALL, VGA also ! :( I conclude that is VirtualBox the problem, or "virtualbox bios mouse emulation" , i will sending this Fr...
by Cpcdos
Sep 29, 2016 13:50
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 727

Re: Mouse horrible resolution (8x8)

Thank you for your reply :) I not have any problem with screenlock, is not a jump effect i'm sure! When I set manually my mouse position, never he can be placed between 8 pixels. He move respectively 8 by 8, same problem if I not use "Screenlock". The problem is only on VirtualBox! Not on ...
by Cpcdos
Sep 28, 2016 14:21
Forum: DOS
Topic: Mouse horrible resolution (8x8)
Replies: 4
Views: 727

Mouse horrible resolution (8x8)

Hi! Thinking accuse VirtualBox I've posted my question here https://forums.virtualbox.org/viewtopic.php?f=4&t=79917 Apparently, this problem "is not in VirtualBox", but FreeBasic compiler ? GFX ? If someone can take his time to resolve this strange bug :/ Thank you Regards
by Cpcdos
Aug 06, 2016 12:17
Forum: DOS
Topic: Change heap size
Replies: 1
Views: 491

Change heap size

Hi, I would to know how to change heap size from FBC.EXE parameters ? I know -t <value in kb> for the stack I've tested "-Wl" "-Wa" arguments -Wl --heap=0x100000 -Wl=--heap=0x100000 -Wl heap=0x100000 -Wl, -Wl,--heap=0x100000 but I've " unrecognized option " (Same proble...
by Cpcdos
Aug 06, 2016 8:32
Forum: DOS
Topic: Strange SIGSEGV when I exit my FB & C++ program
Replies: 6
Views: 773

Re: Strange SIGSEGV when I exit my FB & C++ program

My GPP compiler arguments :

Code: Select all

std=c++14 -m32 -O2 -march=i486 -s -funroll-loops -Wall -ffast-math

FreeBasic :

Code: Select all

-O 3 -arch 486 -w all -lang fb -RR -t 8192 -l stdcxx

Go to advanced search