And it is using malloc... ;)
I wanted something that increases the stack pointer ESP.

e.g.
----
void main()
{
        int[] arr;
        int n = 42;
        
        writeln(arr.length);
        writeln(arr.ptr);
        
        asm {
                mov EAX, n;
                mov [arr + 8], ESP;
                sub [ESP], EAX;
                mov [arr + 0], EAX;
        }
        
        writeln(arr.length);
        //writeln(arr[0]);
}
----
but that does not work...

Reply via email to