Global b:Byte Ptr=MemAlloc(7) b[0]=Byte(195) Global func( a:Int )=Byte Ptr(b) func( 5 )
Can you now just pop the paramater off the stack? I cant do it because I dont know assembler so much.
When I placed a debugstop before the function call and steped into the function blitzmax just passed over it. It seems like this technique could be quite well behaved.