Search found 1227 matches
- Jan 31, 2021 10:43
- Forum: Documentation
- Topic: Executables and Compiling
- Replies: 16
- Views: 631
Re: Executables and Compiling
Module 1 is the main module put it first in the list, however module 2 will be the first executed. fbc module1.bas module2.bas Then you need to define the array as common in both modules and redim in one (as it's an array) See manual for common statement. And don't forget that re/dim MyArray(3) ther...
- Jan 31, 2021 9:32
- Forum: Projects
- Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
- Replies: 676
- Views: 181481
Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Thanks for the new version! P.S. I always loved the FBDebugger debugger. You are welcome. - a new button on main window to toogle update on / update off for proc/var tab and dump memory when executing step by step. The purpose is to avoid a long update when there are a lot of variables/fields (than...
- Jan 30, 2021 17:27
- Forum: Documentation
- Topic: Executables and Compiling
- Replies: 16
- Views: 631
Re: Executables and Compiling
Good work Jeff Some typos and forgettings : emscripten backed has other tools <--- missing n - [ as ] assembler translate *.asm files in to *.o object files <--- missing *.a64 -R, -RR, -C : keep imtermediate files at compile / assemble stages then continue to next stage <---- m instead n Compiler Op...
- Jan 30, 2021 16:50
- Forum: Projects
- Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
- Replies: 676
- Views: 181481
Re: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
Still a new version : 2.98.1 (2021/01/30) https://users.freebasic-portal.de/sarg/fbdebugger298_1.zip Added - a new button on main window to toogle update on / update off for proc/var tab and dump memory when executing step by step. https://users.freebasic-portal.de/sarg/update_icon.jpg The purpose i...
- Jan 27, 2021 20:01
- Forum: Beginners
- Topic: passing an array to a subroutine
- Replies: 3
- Views: 221
Re: passing an array to a subroutine
Define an array in declare and no index when passing the array. screenres 800,600,32 dim as integer pls(100),x Declare Sub plotxy(() as integer,as integer) for x= 30 to 70 pls(x)=100 'set up a +ve pulse description next plotxy(pls(),100) sleep end '------ subs ------- sub plotxy(a() as integer,s as ...
- Jan 26, 2021 12:54
- Forum: General
- Topic: Accessing the highest ENUM value
- Replies: 17
- Views: 617
Re: Accessing the highest ENUM value
Try that :
There is text replacement with define and enum is more a constant.
Code: Select all
#define foo integer
dim as foo test
test=10
enum
foo= integer
end enum
dim as foo test2
test2=10
There is text replacement with define and enum is more a constant.
- Jan 25, 2021 20:13
- Forum: Projects
- Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
- Replies: 676
- Views: 181481
Re: FB debugger : 2.98 32/64 BIT ..... (2021/01/25)
Now when using -g with gas64 2 special sections are directly created filled with debug data. GDB doesn't know those sections so it doesn't/can't use it. Leave an option for gdb too. When I downloaded 1.08.0 and compiled with -gas64, it compiled faster than gcc, but it was impossible to debug with g...
- Jan 25, 2021 15:18
- Forum: Projects
- Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
- Replies: 676
- Views: 181481
Re: FB debugger : 2.98 32/64 BIT ..... (2021/01/25)
- The most important point: using gas64 option you can debug without difference with gas32 : not anymore issues we have with gcc. Note : even if the debug data is the same than with gas32 you can't use gdb as it's added in a different way. We needed gdb because we could use vscode to debug large pr...
- Jan 25, 2021 11:52
- Forum: Projects
- Topic: FB debugger : 2.98.1 32/64 BIT ..... (2021/01/30)
- Replies: 676
- Views: 181481
Re: FB debugger : 2.98 32/64 BIT ..... (2021/01/25)
Hi all, A new version 2.98 (2021/01/25) https://users.freebasic-portal.de/sarg/FBdebugger298.zip - The most important point: using gas64 option you can debug without difference with gas32 : not anymore issues we have with gcc. Note : even if the debug data is the same than with gas32 you can't use g...
- Jan 24, 2021 17:59
- Forum: General
- Topic: Nested GOSUBs crashes the program if compiled with GCC 64-bit
- Replies: 16
- Views: 625
Re: Nested GOSUBs crashes the program if compiled in 64-bit
fxm wrote:What is the first version of fbc that supports GAS64 ?
Official : 1.08 in the daily build. But here also 1.07 : viewtopic.php?f=8&t=27478&start=375#p277780
- Jan 24, 2021 17:27
- Forum: General
- Topic: Nested GOSUBs crashes the program if compiled with GCC 64-bit
- Replies: 16
- Views: 625
Re: Nested GOSUBs crashes the program if compiled in 64-bit
No problem with gas64. :-)
- Jan 22, 2021 1:19
- Forum: Community Discussion
- Topic: Bug in Circle function?
- Replies: 7
- Views: 305
Re: Bug in Circle function?
Reduced code for showing the bug. When x=1.#INF gas32 --> nothing drawed gas64/gcc64 --> weird lines screen 18,32 randomize dim As Single x, y=300, z = 50 Do for i as integer =5 to 0 step -1 x=50.0/i circle (x, y), z, rgb(rnd*255,rnd*255,rnd*255),,,,F print x:sleep 1000:cls Next loop Until Len(Inkey...
- Jan 21, 2021 10:07
- Forum: General
- Topic: Accessing the highest ENUM value
- Replies: 17
- Views: 617
Re: Accessing the highest ENUM value
The value "0" is not the lowest enum value but only the default initialized value. Try this code and you will get also "0". ENUM my_enum value0 = 1 value1 value2 value3 value4 my_enum_up end enum DIM v AS my_enum print v sleep I would also add an upper symbol used as ubound so yo...
- Jan 19, 2021 8:32
- Forum: General
- Topic: Quantum random floats in your applications
- Replies: 23
- Views: 758
Re: Quantum random floats in your applications
@SARG Can you see the images in my last two posts? The reason I ask is that all three have an image location using https but the first two use http in the Page Source and the last one uses https in the Page Source which tells me that the forum software is getting its knickers in a twist. I can see ...
- Jan 08, 2021 21:48
- Forum: General
- Topic: Quantum random floats in your applications
- Replies: 23
- Views: 758
Re: Quantum random floats in your applications
Yeah I can see them. However I had to close and reopen Chrome, F5 was not enough. 
