Address of built in procedures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Address of built in procedures

Post by wilbert »

When using inline ASM, it would be convenient sometimes to be able to call one of the PB procedures.
The symbols for these procedures are not always the same cross platform. Therefore it would be nice if it would be possible to get the address of a PB procedure.

Example :

Code: Select all

Allocate = @AllocateMemory()

EnableASM
MOV ebp, esp
SUB esp, 12
PUSH dword 1024
CALL Allocate
MOV esp, ebp
DisableASM
At the moment something like this is only possible for user defined procedures but not for the built in procedures.