PB_StringBasePosition and PB_StringBase

Bare metal programming in PureBasic, for experienced users
ElementE
Enthusiast
Enthusiast
Posts: 139
Joined: Sun Feb 22, 2015 2:33 am

PB_StringBasePosition and PB_StringBase

Post by ElementE »

When using PureBasic's string functions the assembly source code produced by the compiler makes reference to the PB_StringBasePosition and PB_StringBase values. What are the definitions of these two items?
Think Unicode!
ElementE
Enthusiast
Enthusiast
Posts: 139
Joined: Sun Feb 22, 2015 2:33 am

Re: PB_StringBasePosition and PB_StringBase

Post by ElementE »

I am going to attempt to answer my own questions.

PB_StringBase contains an address pointing to the start (Base) of the string memory area.

PB_StringBasePosition contains an offset (Position) relative to the String Base address

To get the address of a string data item, the PB_SringBase and PB_StringBasePostion for the particular string data must be added.
Think Unicode!
Post Reply