Page 10 of 10
Re: PureBasic 6.20 is out !
Posted: Mon Feb 17, 2025 6:14 pm
by Little John
PBJim wrote: Mon Feb 17, 2025 3:34 pm
Out of interest, is there a demonstration of work that's been done within the realm of mobile applications with Spiderbasic, even something very simple to inspire others to make a start?
Maybe you'll find something on the SpiderBasic forum.
Re: PureBasic 6.20 is out !
Posted: Mon Feb 17, 2025 7:44 pm
by AZJIO
PBJim wrote: Mon Feb 17, 2025 3:34 pm
Out of interest, is there a demonstration of work that's been done within the realm of mobile applications with Spiderbasic, even something very simple to inspire others to make a start?
link,
help
The help file for the phone
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 1:15 am
by SPH
By skimming the possible ideas to integrate into PureBasic (except 3D), there will be nothing more to add.
One day, we may have a "PureBasic 9 Integral"...
Yeah, yeah, I see it around version 9, I don't know why.
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 7:27 am
by gamparono
IsPack() is fully missing in 6.20, added only to
online manual(.chm file also missing whole page)
P.S. btw, would someone be able to
fix IDE syntax highlight please?
P.P.S. Also figuring out occasional IDE crashes(freezes) after 6.10 release, can't get specific steps...
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 9:24 am
by Fred
Please open regular bug reports, we can't track these properly here
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 6:11 pm
by AZJIO
WebWiewProxy - there's not a typo in here? WebViewProxy?
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 7:12 pm
by Quin
AZJIO wrote: Tue Feb 18, 2025 6:11 pm
WebWiewProxy - there's not a typo in here? WebViewProxy?
Already reported
here.
Re: PureBasic 6.20 is out !
Posted: Tue Feb 18, 2025 9:22 pm
by User_Russian
gamparono wrote: Tue Feb 18, 2025 7:27 am
IsPack() is fully missing in 6.20, added only to
online manual(.chm file also missing whole page)
Sometimes this happens.
For example, in version 5.50, a line appeared in the history
- Added: #StringConstant$ syntax support, to get the address of a string constant
But it was never implemented. Later this line disappeared from history.
Re: PureBasic 6.20 beta 3 is out !
Posted: Mon Feb 24, 2025 2:50 pm
by minimy
pf shadoko wrote: Tue Jan 28, 2025 10:40 am
minimy wrote: Fri Jan 17, 2025 6:32 pm
PB 6.20 and Ogre1.4 can run over macos catalina?
sorry for the late reply
normally the bug with macs is fixed
can you confirm?
Sorry pf_shadoko i was very busy, no work over macos catalina 10.15.7.
Initengine3D() no run.
ohhhhh!!
Try with if initengine3d() but not..
Re: PureBasic 6.20 is out !
Posted: Thu Feb 27, 2025 11:04 am
by akee
Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.
Code: Select all
; QuickHelp GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL$ GetCPUID()
Protected tmp_HiBits.l
Protected tmp_LoBits.l
Protected tmp_Serial.q
! mov eax, 01h
! cpuid
! mov dword [p.v_tmp_LoBits], eax
! mov dword [p.v_tmp_HiBits], edx
tmp_Serial = (tmp_HiBits << 32) | tmp_LoBits
ProcedureReturn Hex(tmp_Serial, #PB_Quad)
EndProcedure
;Debug GetCPUID()
Code: Select all
Compiling C:\Data\PureLibrary\Library\GetCPUID.pb to library GetCPUID.
PureBasic 6.20 - C Backend (Windows - x64)
Compiling C:\Data\PureLibrary\Library\GetCPUID.pb
Loading external libraries...
Starting compilation...
16 lines processed.
Error: Assembler
error: unknown type name 'mov'
64 | mov eax, 01h
| ^~~
purebasic.c:64:11: error: invalid suffix "h" on integer constant
64 | mov eax, 01h
| ^~~
purebasic.c:64:11: error: expected identifier or '(' before numeric constant
Re: PureBasic 6.20 is out !
Posted: Thu Feb 27, 2025 12:44 pm
by breeze4me
akee wrote: Thu Feb 27, 2025 11:04 am
Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.
Code: Select all
; QuickHelp GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL$ GetCPUID()
Protected tmp_HiBits.l
Protected tmp_LoBits.l
Protected tmp_Serial.q
! mov eax, 01h
! cpuid
! mov dword [p.v_tmp_LoBits], eax
! mov dword [p.v_tmp_HiBits], edx
tmp_Serial = (tmp_HiBits << 32) | tmp_LoBits
ProcedureReturn Hex(tmp_Serial, #PB_Quad)
EndProcedure
;Debug GetCPUID()
Since the C backend is used when compiling, you must use inline C syntax.
Code: Select all
; QuickHelp GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL.s GetCPUID()
Protected eax.l, edx.l
!__asm__ __volatile__ (
!".intel_syntax noprefix;"
!"mov eax, 1;"
!"cpuid;"
!".att_syntax"
!:"=a" (v_eax), "=d" (v_edx)
!);
ProcedureReturn Hex((edx << 32) | eax, #PB_Quad)
EndProcedure
;Debug GetCPUID()
Re: PureBasic 6.20 is out !
Posted: Thu Feb 27, 2025 1:03 pm
by Quin
akee wrote: Thu Feb 27, 2025 11:04 am
Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.
Correct, currently PureLibrary creation in PureBasic is limited to the C backend. So you can use inline C, but not inline Asm.
Re: PureBasic 6.20 is out !
Posted: Thu Feb 27, 2025 3:32 pm
by skywalk
With the C optimizer, native code gets very close or exceeds asm.
Re: PureBasic 6.20 is out !
Posted: Thu Feb 27, 2025 5:08 pm
by akee
thanks breeze4me... your code works.