Search found 1120 matches

by SARG
Sep 21, 2020 20:00
Forum: Community Discussion
Topic: Compiler code generation?
Replies: 16
Views: 279

Re: Compiler code generation?

@fatman2021
Thanks.
Use 'select case AS CONST v' to get a better code using a jump table.

However I have to investigate a little as without 'as const' tests are done with double datatype. Maybe it's normal.
by SARG
Sep 21, 2020 19:29
Forum: Community Discussion
Topic: Compiler code generation?
Replies: 16
Views: 279

Re: Compiler code generation?

You do realize that C has a perfectly good switch statement you can use? Why don't you use it? What is with all the spaghetti code? This is due to the fact that fbc doesn't directly translate basic in C code instead it uses a 'pseudo asm code' translated in C. Post your initial code, I'll be intere...
by SARG
Sep 17, 2020 21:56
Forum: General
Topic: Project of a multiplatform version of FreeBasic Miner
Replies: 28
Views: 671

Re: Project of a multiplatform version of FreeBasic Miner

Tourist Trap wrote:I've throwed the exe away from the zip and put the result there.
Thanks I could download it.

badidea wrote:Not my website, not my programl.
I know that. Sorry I should have quoted without your pseudo.
by SARG
Sep 17, 2020 20:01
Forum: General
Topic: Project of a multiplatform version of FreeBasic Miner
Replies: 28
Views: 671

Re: Project of a multiplatform version of FreeBasic Miner

Hi T.T,
Avast doesn't let me download the file. I just see that freebasicminer.exe causes the problem --> Win32:Malware-gen.
It seems to be generic so surely a false positive...
by SARG
Sep 17, 2020 16:57
Forum: General
Topic: Project of a multiplatform version of FreeBasic Miner
Replies: 28
Views: 671

Re: Project of a multiplatform version of FreeBasic Miner

badidea wrote:http://games.freebasic.net/dumpbyid.php?input=166
Avast is not very happy when downloading. It reports a malware
Maybe a false positive.
by SARG
Sep 10, 2020 0:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 204
Views: 17134

Re: FreeBASIC 1.08 Development

Been trying to work out how to use it. Have a few modules which have simple 32-bit routines, although I will probably need to re-wite these. Currently the provided version of the exe can be used as the 32bit version of fbc : asm code is directly emitted. Just replace fbc by fbc64_gas64. In the futu...
by SARG
Sep 09, 2020 20:46
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 204
Views: 17134

Re: FreeBASIC 1.08 Development

jevans4949 wrote:Will the 1,08 release include the gas64 option?
CoderJeff and I are working on that.
Why are you interested ?
by SARG
Sep 08, 2020 8:28
Forum: Windows
Topic: RichEdit syntax coloring
Replies: 17
Views: 454

Re: RichEdit syntax coloring

@aurelVZAB
Sorry I didn't fully understand your request. In fbdebugger I did also syntax coloring but it's too slow for biggest source codes.

@jj2007
Now that's clearer ;-)

@D.J.Peters
Maybe I would use your code. Do you agree ?
by SARG
Sep 07, 2020 19:33
Forum: Windows
Topic: RichEdit syntax coloring
Replies: 17
Views: 454

Re: RichEdit syntax coloring

aurelVZAB wrote:What to say ..thank you very much on that!
Ok this is for all words but how colorize specific word or few words?
You have to select the word or any part of the text and then play with parameter 's' SCF_WORD Or SCF_SELECTION.

jj2007 wrote:*permanent colouring, i.e. changing the file content
What do you mean ?
by SARG
Sep 07, 2020 16:49
Forum: Windows
Topic: RichEdit syntax coloring
Replies: 17
Views: 454

Re: RichEdit syntax coloring

Extracted from fbdebugger this function is used to color sourcecode. Not sure it's enough simple... h : handle of the richedit control s : what is to be colored c : color d : some effects private function fb_setcolor(h As HWND,s As Integer,c As Integer,d As Integer) As Integer '''#define WM_USER &am...
by SARG
Aug 25, 2020 19:37
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 647
Views: 164828

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

StillLearning wrote:I went to the link you specified but was unable to download the update. Sorry had computer issues to immediately use your link.
Sorry, file removed by error but now uploaded again.
http://users.freebasic-portal.de/sarg/F ... _EXE32.zip
by SARG
Aug 20, 2020 21:59
Forum: General
Topic: Squares
Replies: 8041
Views: 507469

Re: Squares

dodicat wrote:problem with gas64 with this
What is problem ? I ran the program and haven't see one.
by SARG
Aug 17, 2020 22:06
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 361
Views: 38557

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

@SARG well done I like it :-) Thank you. Use it at least for bug chasing. Now need to merge into the official assembly. When It will be ready (polishing, optimization) so still a bit of work. I have updated a github repository. Codejeff was able to access to the code for a future integration. Will ...
by SARG
Aug 16, 2020 16:36
Forum: Documentation
Topic: Wiki improvements
Replies: 493
Views: 92815

Re: Wiki improvements

@fxm
It will take me a little while to 'swallow' those nice examples.
In any case thank you for the regular update of the documentation.
by SARG
Aug 16, 2020 16:05
Forum: Beginners
Topic: changing code pages
Replies: 28
Views: 989

Re: changing code pages

jj2007 wrote:I'd really like to know what FB uses for its normal printing:

I followed execution of print "aaaa" and after a lot of instructions this function has been reached.--> WriteConsoleOutputA

Go to advanced search