Page 1 of 1

PB_StringBasePosition and PB_StringBase

Posted: Fri Jan 01, 2016 2:33 am
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?

Re: PB_StringBasePosition and PB_StringBase

Posted: Wed Jan 06, 2016 2:11 am
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.