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)
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)