Search found 421 matches

by Olli
Tue Oct 12, 2021 8:26 pm
Forum: Coding Questions
Topic: Smoother FillArea routine
Replies: 7
Views: 663

Re: Smoother FillArea routine

If nobody answers this question in less than a week, I switch my computer on and give an algo. - Redo a filling algo - Choose a three-color limit (here, 0;0;0) - Blend the fill color with the background color, in the area of the filling algo. This will be a very very good subject, because, just the ...
by Olli
Sat Oct 09, 2021 6:31 pm
Forum: Coding Questions
Topic: Did ASM syntax changed for PB 6.00 alfa?
Replies: 27
Views: 4506

Re: Did ASM syntax changed for PB 6.00 alfa?

@juergenkulow To conclude, after having read the docs you provided, is I am wrong about ARM : I do not see an ARM fsincos equivalent. I note fSinCos is an x86/x64 ASM example which finds crossplatform (this time, for ARM too) libraries, faster than hardware co-processor. But this goes away from the ...
by Olli
Sat Oct 09, 2021 6:23 pm
Forum: Coding Questions
Topic: Help me: Convert C++ to PB. Thanks for help <3
Replies: 3
Views: 489

Re: Help me: Convert C++ to PB. Thanks for help <3

A break we'll have on the forum is to search a message referring to C or C++. Even 'cpp' is too short to be used in retrieving of a subject about C++. It stays 'backend', term which recently appeared in the forum on the version 6. But this types conversion has already been discussed. New cpp backend...
by Olli
Wed Oct 06, 2021 6:58 pm
Forum: Coding Questions
Topic: Did ASM syntax changed for PB 6.00 alfa?
Replies: 27
Views: 4506

Re: Did ASM syntax changed for PB 6.00 alfa?

; fsincos in C Backend Define rcos.f, rsin.f, angle.f=3.141 ! asm volatile("fsincos" : "=%&t" (v_rcos), "=%&u" (v_rsin) : "0" (v_angle)); SetClipboardText(StrF(rsin)+" "+StrF(rcos)) ; 0.0005926211 -0.9999998212 @juergenkulow How are defined ...
by Olli
Sun Oct 03, 2021 7:45 am
Forum: Coding Questions
Topic: Did ASM syntax changed for PB 6.00 alfa?
Replies: 27
Views: 4506

Re: Did ASM syntax changed for PB 6.00 alfa?

The ASM syntax has already been debated on C fora and, the way to keep hardware compatibility (ARM vs Intel) is found since long time on C.

Fred approached it on Version 6, so the ASM syntax has changed.
by Olli
Sat Oct 02, 2021 3:53 pm
Forum: Coding Questions
Topic: Did ASM syntax changed for PB 6.00 alfa?
Replies: 27
Views: 4506

Re: Did ASM syntax changed for PB 6.00 alfa?

; fsincos in C Backend Define rcos.f, rsin.f, angle.f=3.141 ! asm volatile("fsincos" : "=%&t" (v_rcos), "=%&u" (v_rsin) : "0" (v_angle)); SetClipboardText(StrF(rsin)+" "+StrF(rcos)) ; 0.0005926211 -0.9999998212 And thank you juergenkulow for...
by Olli
Tue Sep 14, 2021 12:47 am
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 2621

Re: Advertising banner on Purebasic Forum

Certainly not ! Or Google accesses to the camera of the smartphone and has recorded any drops I let earlier on the toilet bowls, last act I do not do, sitting ever on this place !
by Olli
Mon Sep 13, 2021 9:04 pm
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 2621

Re: Advertising banner on Purebasic Forum

Dow... I just have got a screenshoot where an ad told me to try a penis sheath. If you could filter the thematic too, it could be better...
by Olli
Mon Sep 13, 2021 4:52 pm
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 2621

Re: Advertising banner on Purebasic Forum

Fred wrote:I will disable it
I discover this ad banner, and I cannot cancel this one : thank you for this humble choice.
by Olli
Fri Sep 10, 2021 6:55 am
Forum: Coding Questions
Topic: Macros
Replies: 7
Views: 1087

Re: Macros

If not already told, I remember there is a priority between macros and compiler directives. I think it is as below (compiler directives are not nestable in macros) : CompilerIf 0 ; <-- set 0 to 1 to change display. Macro mac1(arg) debug arg EndMacro CompilerElse Macro mac1(arg) messageRequester(&quo...
by Olli
Fri Sep 10, 2021 4:42 am
Forum: Coding Questions
Topic: ProgramExitCode(), but as a string
Replies: 16
Views: 1525

Re: ProgramExitCode(), but as a string

If the output code is a 64-bits integer, you can compress a 8-characters text filename and store your string or your strings list in a txt file ! :mrgreen:
by Olli
Wed Sep 01, 2021 6:08 pm
Forum: Off Topic
Topic: Very important!
Replies: 14
Views: 5716

Re: Very important!

Hello,

I said several months ago that the pandemic would end this month. Today is the first day of this month of September. And there is no sign of stopping. So I discover an extreme disillusionment. And I must admit my mistake. I am sorry.
by Olli
Tue Aug 24, 2021 9:04 pm
Forum: Coding Questions
Topic: Fastest way to draw to screen
Replies: 13
Views: 877

Re: Fastest way to draw to screen

@demivec There are 0.5625 nanoseconds which are too much : too slow ! (humour) I imagine the same idea as calculate under a maximum cpu ressource limit to fill x pixel on a sub-image and draw a new sub-image every 33ms (60 Hz, or the desktopFrequency() ). It is ugly because it let the eyes see any h...
by Olli
Sun Aug 22, 2021 10:34 pm
Forum: Coding Questions
Topic: Handling 24-bit words
Replies: 6
Views: 626

Re: Handling 24-bit words

Code: Select all

define d.d

readStep:

i = ((peeka(*x + 2) << 16 + peeka(*x) << 8 + peeka(*x + 1) ) << 8) >> 8
d = i / $800000
*x + 3

by Olli
Wed Aug 04, 2021 11:55 pm
Forum: Off Topic
Topic: Z80000 : A 32 bits CPU having only... 91000 transistors
Replies: 2
Views: 2307

Re: Z80000 : A 32 bits CPU having only... 91000 transistors

Hello Jack, thank you for these links, I will read after a time of translation. I found the speed range : between 10 MHz and 25 MHz. It seems that this CPU has been compared to the 80386, containing near 275000 transistors. What it surprises me the most, is the internal 64-bits multiplying and divid...