Search found 747 matches

by Mysoft
Sep 21, 2019 0:08
Forum: General
Topic: fbgfx MMX misdetect
Replies: 1
Views: 60

Re: fbgfx MMX misdetect

and seems this was already fixed on newer fb version.... so it was a bug... but ok... the fix was a hack... so i missed it the first time i looked... but now when i went to confirm... it was there "mov al,0" :)
by Mysoft
Sep 21, 2019 0:02
Forum: General
Topic: fbgfx MMX misdetect
Replies: 1
Views: 60

fbgfx MMX misdetect

ok, i have been making changes to have freebasic/fbgfx running on win32s ... and then while my tests worked on dosbox... on a real IBM AST 133mhz... (pentium?), all fbgfx program crashed... and so they crashed on ANIMFULL executed an invalid instruction in module ANIMFULL.EXE at 0137:0040c88c. Regis...
by Mysoft
May 04, 2019 22:17
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 547

Re: constant pointer to global struct member

Type UDT Dim As Integer I = 123 Dim As String s = "ABC" Dim As Double d = 3.14 End Type Static Shared As UDT u Static Shared As Integer Ptr pi pi = Cptr(Any Ptr, @u) + Offsetof(UDT,I) Static Shared As String Ptr ps ps = Cptr(Any Ptr, @u) + Offsetof(UDT,s) Static Shared As Double Ptr pd pd...
by Mysoft
May 04, 2019 21:39
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 547

Re: constant pointer to global struct member

as an addendum... some examples type MyUDT A as integer B as integer end type static shared as MyUDT tTest 'ok this works... static shared as MyUDT ptr pWork1 = @tTest '*** this fails **** 'static shared as any ptr pFails1 = @(tTest.B) '*** this ALSO fails **** 'static shared as test ptr pFail2 = ca...
by Mysoft
May 04, 2019 21:18
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 547

Re: constant pointer to global struct member

it works with @tA but it does not work with @tA.A Ptr access to member is -> (and not . ) @tA.A is not ptr access to member is address of the member of the struct i.e. @(tA.A) not (@tA).A ... so to get a constant (meaning its obtained at COMPILE TIME) that is the address to the member of the global...
by Mysoft
May 04, 2019 2:07
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 547

Re: constant pointer to global struct member

The Const (even if used as qualifier only) is responsible, that the members can't be changed, however, this is "expected behaviour" and not a bug. no thats not what the const there means... it just mean the value of the ptr is constant which IS, meaning the pointer value is pre-calculated...
by Mysoft
May 03, 2019 22:50
Forum: General
Topic: constant pointer to global struct member
Replies: 8
Views: 547

constant pointer to global struct member

i guess the following code should be possible type MyStruct A as integer end type static shared as MyStruct tA const pTA = @tA specially giving that i can access the constant pointer in ASM asm mov eax, [tA+offsetof(MyStruct,tA)] which gives another issue... that variables inside structs are not acc...
by Mysoft
Feb 18, 2019 15:52
Forum: Projects
Topic: 80486 emulator with SVGA in BASIC!!!!!
Replies: 17
Views: 2466

Re: 80486 emulator with SVGA in BASIC!!!!!

nice project... but, you have lot of places where you are using "dim shared" instead of "static shared" for globals... that reduce considerable... as those end being "dynamic allocations" forcing an extra indirection.... should use 'screenres' instead of screen with num...
by Mysoft
Jan 09, 2019 15:25
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 8386

Re: VisualFBEditor - IDE for FreeBasic

Do you recommend making a form designer without OOP? well the IDE is a disappointment that is like that...but oh well even fbide is just like that but in C++ so all in all it being freebasic is "better" (or not i'm not sure, because not having the same bad stuff from other languages on fr...
by Mysoft
Jan 09, 2019 0:23
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 8386

Re: VisualFBEditor - IDE for FreeBasic

please at least fix the FORMS generator code to not require stupid retarded OOP.... then at least that is usable without teaching crap to everybody expecting to use it... at least do this to reduce the amount of garbage you are putting on the world... PLEASE
by Mysoft
Jan 09, 2019 0:18
Forum: Projects
Topic: VisualFBEditor - IDE for FreeBasic
Replies: 80
Views: 8386

Re: VisualFBEditor - IDE for FreeBasic

would be a nice ide
if it was not made on a stupid pile of OOP
and even the generated form requires stupid retarded OOP
....
by Mysoft
Feb 17, 2018 22:06
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 306

Re: static bitfield initialization

Alternative: Type MyType A as ushort union bits as ushort type B:1 as ubyte C:1 as ubyte end type end union end type static as MyType ThisWorks = type<MyType>(&hffff, 2) hum... well since the workaround would be using constants flags and manually oring the values to init.... it becomes almost a...
by Mysoft
Feb 17, 2018 21:57
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 306

Re: static bitfield initialization

This works if you define a constructor: well, that end worse than as doing it locally (dim as MyType) ... because not only it generates code... it also calls a function to do this code initialization... ##static as MyType t = type(0,1,2) cmp dword ptr [_Lt_0011], 0 jne .Lt_000E mov dword ptr [_Lt_0...
by Mysoft
Feb 17, 2018 20:39
Forum: General
Topic: static bitfield initialization
Replies: 4
Views: 306

static bitfield initialization

tried to search, but got no useful results... there's a way to initialize an UDT with a bitfield statically? otherwise i will need to workaround using "flags" as member and joint constants Type MyType A as ushort B:1 as ubyte C:1 as ubyte end type 'this is ok... as no bitfield is set stati...
by Mysoft
Aug 04, 2017 16:53
Forum: General
Topic: linux static binaries
Replies: 5
Views: 603

Re: linux static binaries

glibc 2.14 was released 2011-06-01. IMO I think 4 1/2 years back-compatibility (when released in early 2016) is much too little; the Windows build probably works on OSes at least 17 years old. actually freebasic 0.24 is the last one that works on windows 98... (but then again... indeed 2k/XP are 17...

Go to advanced search