address in memory of bank

BlitzMax Forums/BlitzMax Programming/address in memory of bank

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Shouldn't you use BankBuf(bank)? No need to use `TBank ptr` ??

For function pointers you just define a dummy function pointer variable like:

Local Myfunc()

and then you equate it to a real function with

Myfunc()=Function 'without the brackets

You can then convert the function pointer into a different point using:

Local MyFuncB:Byte Ptr=Byte Ptr(Myfunc)
Local MyFuncI:Int Ptr=Int Ptr(MyFuncB)