Search found 2770 matches

by marcov
Jan 22, 2020 17:46
Forum: Tips and Tricks
Topic: The Ultimate FB HashMap
Replies: 6
Views: 1356

Re: The Ultimate FB HashMap

Or assign it to ebx. If you assign ebx, the high 32-bits should be auto cleared.
by marcov
Jan 21, 2020 12:23
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 57
Views: 18358

Re: FreeBasic communication with Arduino logic error?

Arduino Due is based on ARM technology, Atmel SAM3X8E, while the rest are pseudo 8-bitters. I have the datasheet of the DUE here, and it doesn't say much about what FPU hardware it has. I assume that means it hasn't any, and typically other parts of its family, Cortex M3 doesn't seem to have it eith...
by marcov
Jan 20, 2020 12:12
Forum: General
Topic: Off Topic Form
Replies: 9
Views: 323

Re: Off Topic Form

I mean, whole facebook is offtopic ? :-)
by marcov
Jan 20, 2020 7:50
Forum: General
Topic: Off Topic Form
Replies: 9
Views: 323

Re: Off Topic Form

facebook ?
by marcov
Jan 08, 2020 20:17
Forum: Tips and Tricks
Topic: [Linux] Try/Catch
Replies: 7
Views: 290

Re: [Linux] Try/Catch

The trick of try catch and try finally is nested use. This is where macro based workarounds usually fail.
by marcov
Jan 07, 2020 18:05
Forum: General
Topic: Squares
Replies: 7545
Views: 452798

Re: Squares

Congratulations. That code made me cry.
by marcov
Dec 23, 2019 22:20
Forum: Community Discussion
Topic: [offtopic]my girls
Replies: 5
Views: 344

Re: [offtopic]my girls

For alcoholic poison, I usually go with Tripels in winter time.

As girl duets go, I'm more a Floor (Jansen) & Simone (Simons)kind.

But Ann and Nancy Wilson will do just fine too.
by marcov
Dec 23, 2019 13:44
Forum: Tips and Tricks
Topic: CRC16 specific: exactly the same as in XMODEM
Replies: 5
Views: 316

Re: CRC16 specific: exactly the same as in XMODEM

I used this for CCITT (XModem) crc16. It also lists initial value and polynomal. function CRC16CCITT(p:pbyte;len:integer;initial:word=$1D0F): Word; const polynomial = $1021; // 0001 0000 0010 0001 (0, 5, 12) var crc: Word; I, J: Integer; b: Byte; bit, c15: Boolean; begin crc := initial; // initial v...
by marcov
Dec 19, 2019 13:12
Forum: Linux
Topic: Issue with RUN command?
Replies: 4
Views: 127

Re: Issue with RUN command?

Thanks for the tipp! I never used strace yet. It'll take some time to find out if it helps. (on *BSD often called ktrace/kdump (ktrace is about the same a strace but outputs to a binary file, kdump dumps the file, and on Solaris and Darwin something similar is called "truss". BTW: The tic...
by marcov
Dec 19, 2019 9:54
Forum: Linux
Topic: Issue with RUN command?
Replies: 4
Views: 127

Re: Issue with RUN command?

Look with strace to see what is passed to execve. Then you can see what goes wrong breaking up the argument line in its components. Unix/execve demands an array of parameters, in this case two (1) -c and (2) 'cmd-1 ; cmd-2' (without ticks maybe?) this should be visible with strace. if the FB helper ...
by marcov
Dec 15, 2019 13:32
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 96
Views: 19870

Re: Gas64 (no more use of gcc, only gas) :-)

Do you take into account the varying ABIs between win64 and *nix? (Different parameter regs). I'm aware of the differences and for procedure calls I could estimate it's ready at about 90%. Look at the code by searching #ifdef __fb_linux__ but don't hope to easily understand what is done ;-) Ok. Do ...
by marcov
Dec 13, 2019 21:47
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 96
Views: 19870

Re: Gas64 (no more use of gcc, only gas) :-)

Do you take into account the varying ABIs between win64 and *nix? (Different parameter regs). Do you use SSE or fpu for floating point support on win64 ? Register parameter save area, red zone support ?
by marcov
Dec 11, 2019 21:12
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1373

Re: Suddenly FB executables are detected as Trojans

It is possible to turn of most of the privacy-invading features of Windows 10. What is essentially advertising in the start menu really bugs me though. Luckily I already mostly unlearned using the start menu for routine tasks, relying on windows-R invocations, windows-I shortcut to control panel an...
by marcov
Dec 10, 2019 21:13
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1373

Re: Suddenly FB executables are detected as Trojans

Question: If you use the GCC backend do you see the same problems with FB executables, and differences with various optimization levels? I don't use fb much, and the few times that I do, I use the asm backend. I had problems with mingw in the past (I used mingw to build binutils and gdb for FPC), b...
by marcov
Dec 10, 2019 18:28
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1373

Re: Suddenly FB executables are detected as Trojans

And it is exactly that "my way or the highway" mentality that is considered viral, forcing to build parallel codebases since GPL and nearly every non GPL license doesn't mix. Sure but that's just whining, especially when it comes from proprietary companies. As said the view came from the ...

Go to advanced search