Search found 87 matches

by jmg
Sep 09, 2018 7:18
Forum: Community Discussion
Topic: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa
Replies: 12
Views: 520

Re: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa

For example, C# added support for that in C# 7.0 https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7#numeric-literal-syntax-improvements and later added support for leading underscores (in binary/hex literals) in C# 7.2 https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7...
by jmg
Sep 09, 2018 0:26
Forum: Community Discussion
Topic: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa
Replies: 12
Views: 520

Re: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa

I like the idea as I know it already from other languages and doesn't cause any compatibility issues with existing code and is totally optional without bringing any disadvantages. For most uses adding support for such numeric literals at compile would perfectly do. Thus adding support for that in t...
by jmg
Sep 08, 2018 0:41
Forum: Community Discussion
Topic: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa
Replies: 12
Views: 520

Re: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa

Freebasic uses &h, &o, &b. More general would be to allow underscores anywhere in these notations? E.g.: &hFF_BB_00_00 or &h_FFBB_0000 or more crazy &h__D__E__A__D__B__E__E__F or a binary number &b_0101_0001_1110_0000 Yes, I was (of course) meaning the general form, and ...
by jmg
Sep 07, 2018 21:49
Forum: Community Discussion
Topic: Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa
Replies: 12
Views: 520

Feature request - tolerate 80_000_000 & 0xff_dd_cc_aa

ie have the FreeBASIC numeric parser skip-over underscore chars. They are there to help programmers group/read the numbers.

This 'tolerates underscores' is becoming more common in Embedded Microcontroller space, and it is common for FreeBASIC to be used to talk to MCUs
by jmg
Sep 05, 2018 19:19
Forum: Projects
Topic: FB debugger : 2.93 32/64 BIT ..... (Sept 5th, 2018)
Replies: 604
Views: 101556

Re: FB debugger : 2.93 32/64 BIT ..... (Sept 5th, 2018)



Cool - I'll test that.
Minor issue - that link in your reply above works ok, but the page 1 link says no file
page1: http://users.freebasic-portal.de/sarg/fbdebugger293.zip
- perhaps case sensitive ?
by jmg
Sep 05, 2018 0:47
Forum: Tips and Tricks
Topic: ON TIMER substitute
Replies: 24
Views: 7646

Re: ON TIMER substitute

The FBC compiler's (32/64) have evolved since then, and may therefore, not be compatible, any longer. Err, yes, that's rather the point. The code here compiles, but produces warnings, that look rather similar to the warnings reported above. So, maybe those warnings where always there, or maybe some...
by jmg
Sep 04, 2018 22:47
Forum: Tips and Tricks
Topic: ON TIMER substitute
Replies: 24
Views: 7646

Re: ON TIMER substitute

This is an old thread, but I'll bump it, to ask if there is a newer version of this ? Google does not find much... I can download and compile like this (used Apr 17, 2010 version of timer.bas) "C:\FreeBASIC\FreeBASIC_1.05.0_Win32\fbc.exe" timer.bas -lib "C:\FreeBASIC\FreeBASIC_1.05.0_...
by jmg
Sep 04, 2018 1:23
Forum: Projects
Topic: FB debugger : 2.93 32/64 BIT ..... (Sept 5th, 2018)
Replies: 604
Views: 101556

Re: FB debugger : 2.92 32/64 BIT ..... (June 6th, 2018)

It's been a while since I tried FBdebugger but 2.92 seems to not quite work ? (win10.64b os) I compile in 64 bit mode the test example given in the FBdebugger PDF file.... C:\FreeBASIC\COM_tests>"C:\FreeBASIC\FreeBASIC-1.05.0-win64\fbc.exe" -g -v JTest.bas FreeBASIC Compiler - Version 1.05...
by jmg
Aug 14, 2016 20:29
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

Is there a reason Python is not good enough for what you need ? Yes. I learned long ago that it is prudent to limit the number of languages and better know the ones you really need well, than many shallow. I don't see Python as particularly useful or attractive, except for cases like this when it i...
by jmg
Aug 14, 2016 8:49
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

My current choice is ngspice and it's free (open source). You can simulate anlog/digital and verilog circuits. ngspice.bi and a simple C-API test: http://www.freebasic.net/forum/viewtopic.php?f=14&t=24956 I have to read the manual at first ;-) (pdf with more than 500 pages) Joshy Nice link - ng...
by jmg
Aug 13, 2016 22:18
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

marcov wrote:Is there also a C level api that could connect FB or FP ? Or even C++ if must be ?


Good question.
A quick look finds nothing, but you would think once one API is done, other languages should be easier...
Is there a reason Python is not good enough for what you need ?
by jmg
Aug 10, 2016 20:41
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

freepcb's dataformats are plain text and somewhat documented. It is easy to write some specific software to manipulate. ... We hacked the format so we had a script (freepascal program) to place parts, KiCad is very similar - it has easily read/generated text files. We did something very similar, us...
by jmg
Aug 07, 2016 20:26
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

@enform Since I posted that, I did more tests on LTSpice, including the XVII beta, and found what is possible to store & preserve in the SCH, varies inconsistently by component type. It is close, and some parts do allow you to enter & keep a usable PCB Package, but not all Parts do this, it ...
by jmg
Jun 14, 2016 7:07
Forum: Projects
Topic: Lt-FreePcb : LTSpice and FreePcb working together
Replies: 29
Views: 5628

Re: Lt-FreePcb : LTSpice and FreePcb working together

Hello , LTSpice is a good simulator ; It exports a netlist without packages . FreePcb is a good Pcb designer , easy to use ; it can import a netlist with packages . Lt-FreePcb builds a netlist with packages from the LTSpice netlist and it copies positions of components from the schematic file ( *.a...
by jmg
Jan 04, 2016 19:32
Forum: Hardware Interfaces / Communication
Topic: COM port Transmit Buffer - Bytes Remaining ?
Replies: 4
Views: 1635

Re: COM port Transmit Buffer - Bytes Remaining ?

Hi jmg, Did you resolve this issue? I have a similar problem with RS232 data. Only with the work-around, of doing a (Baud+Data) variable delay. That seems to work well, with a minimum value plus some usual OS wobble. Even on systems that can check for TxBuffer, that is only the Windows value, and t...

Go to advanced search