Search found 81 matches
- Sun Oct 15, 2023 10:27 pm
- Forum: Coding Questions
- Topic: Using 'FileSeek' and 'Inline ASM' in Memory?
- Replies: 21
- Views: 3385
Re: Using 'FileSeek' and 'Inline ASM' in Memory?
If you move an absolute value to the register eax, you can place pointers before as many as you want:
the content of the eax register will always the value you move in it. :wink:
And you always told us you want to move the value 9 inside of the register eax.
If I ignore your wish for the value ...
- Sun Oct 15, 2023 1:28 am
- Forum: Coding Questions
- Topic: Using 'FileSeek' and 'Inline ASM' in Memory?
- Replies: 21
- Views: 3385
Re: Using 'FileSeek' and 'Inline ASM' in Memory?
If I had to guess, it seems like you're trying to patch the memory of a process by DLL injection. (game hacks, proprietary software mods, …)
If that's the case, there are a couple problems with your approach:
FileSeek(…) should not be used to select a memory location to be modified. That ...
If that's the case, there are a couple problems with your approach:
FileSeek(…) should not be used to select a memory location to be modified. That ...
- Thu Oct 12, 2023 9:26 am
- Forum: Announcement
- Topic: PureBasic 6.03 LTS is released !
- Replies: 184
- Views: 69085
Re: PureBasic 6.03 LTS is released !
Super thanks to the PB team — so many QoL and stability improvements this cycle
!
- Thu Oct 12, 2023 8:48 am
- Forum: General Discussion
- Topic: How to open and close webbrowser (tab)?
- Replies: 4
- Views: 1616
Re: How to open and close webbrowser (tab)?
Trying to manipulate the browser from your application is ill-advised; many browsers exist and they're constantly changing, which makes this sort of solution quite hacky/finicky and fragile. You're liable to end up killing a user's important/unrelated tabs by mistake.
As you've noted, the WebGadget ...
As you've noted, the WebGadget ...
- Thu Oct 12, 2023 4:19 am
- Forum: Feature Requests and Wishlists
- Topic: IfUnsigned a < b
- Replies: 8
- Views: 1679
Re: IfUnsigned a < b
As much as I'd love unsigned support, Fred and Timo seemed to pretty strongly reject it in the past:
These are primary for use to manipulate characters (ascii or unicode) indepently of the main 'Unicode' flag (unlike the .c type). Indeed, it works perfectly as well for unsigned byte and word ...
These are primary for use to manipulate characters (ascii or unicode) indepently of the main 'Unicode' flag (unlike the .c type). Indeed, it works perfectly as well for unsigned byte and word ...
- Wed Oct 11, 2023 1:18 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
V9; I couldn't resist :shock:
Procedure.i SortList_V9()
Protected.MyStruct *cur, *ins, *ref
; Associate each list entry with its corresponding map entry.
ForEach StructList()
StructMap(StructList()\Entry)\Sort = @StructList()
Next
; Sort the list
ForEach StructList()
*cur ...
- Wed Oct 11, 2023 11:27 am
- Forum: The PureBasic Editor
- Topic: [Done] Procedure panel automatically hides at wrong cursor position
- Replies: 4
- Views: 1714
Re: [Done] Procedure panel automatically hides at wrong cursor position
Thanks Fred!
I'll PR the related flicker patch in a bit as well.
And aah, seems I have to report another bug: the Yuki doesn't search the forum properly first

And aah, seems I have to report another bug: the Yuki doesn't search the forum properly first
- Tue Oct 10, 2023 2:18 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
Super handy to know, thanks for that tip!wilbert wrote: Tue Oct 10, 2023 2:11 pm It is internal but on the other hand PB commands themselves also do occasionally change and the structure of a listheader is documented in the SDK that comes with the PureBasic application.
\PureBasic\SDK\VisualC\PureLibraries\LinkedList\LinkedList.h
- Tue Oct 10, 2023 1:58 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
Having said this, I do appreciate that some people just like a coding challenge, regardless of the practical purposes.
That's it. It' just like a puzzle.
And for me I guess it might have to do with my age.
A habit from back in the 80's with a Zilog Z80a cpu running at 3.5 Mhz.
So much this ...
- Tue Oct 10, 2023 1:27 pm
- Forum: Off Topic
- Topic: Universal C Decompiler (Open Source)
- Replies: 8
- Views: 5459
Re: Universal C Decompiler (Open Source)
Ghidra is pretty good and open-source, but being owned by the NSA turns some people off to it.
IDA is closed-source but I tend to prefer it (more accustomed, faster, more plugins, better analysis of common patterns).
ask Fred if decompiling is allowed
That's not what I'm interested in. I ...
IDA is closed-source but I tend to prefer it (more accustomed, faster, more plugins, better analysis of common patterns).
ask Fred if decompiling is allowed
That's not what I'm interested in. I ...
- Tue Oct 10, 2023 12:43 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
I updated my previous post.
I believe I could improve a tiny bit on the speed of your V8 by marking the elements without a reference a bit earlier.
Added to results table! (renamed from V8A → V8B to match convention of others)
I considered marking ref'd entries ahead of time, and didn't bother ...
- Tue Oct 10, 2023 12:20 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
Have you got a header ?
(
- the kurzer usual structure
- a common initial storage (with randomSeed(#publicNumber)
)
I will give a complete code either. I think my personnal optimization is alternate the truth of the variable done for not to waste a time to zero it/them.
And I ignore if the map ...
- Mon Oct 09, 2023 10:25 pm
- Forum: Mac OSX
- Topic: Change the app's icon in real-time
- Replies: 4
- Views: 1547
Re: Change the app's icon in real-time
That's a very clever example, yuki!
I didn't even know that icon changing could be so fast, you could even create animations that way :)
Yeah, it can be changed quite rapidly!
Though, submitting many images in short succession this way (esp. large ones) can ramp up load a bit. So, while it's ...
- Mon Oct 09, 2023 9:26 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
I do not find my duration for this code ! (page 3)
Ah, I can measure and add timing for it if you'd like.
There are two compiler errors that I'm not sure if I've fixed correctly, because final sort order isn't valid (elements appear before their ref).
In entryListCreateMap ...
- Mon Oct 09, 2023 5:13 pm
- Forum: Coding Questions
- Topic: Optimization of a sorting algorithm
- Replies: 74
- Views: 12089
Re: Optimization of a sorting algorithm
Ooh, if the sort field's value isn't strictly required to convey order (but instead used purely for accelerating sorting), we can squeeze more gains!
I present — for today's episode of "Optimisation of a Sorting Algorithm" — the fastest yet... V8:
Procedure.i SortList_V8()
Protected *next ...
I present — for today's episode of "Optimisation of a Sorting Algorithm" — the fastest yet... V8:
Procedure.i SortList_V8()
Protected *next ...