I have problem with passing arguments to user mode process. If i do this:
Code: Select all
int *stack = (int *)fr->usersp+4;Code: Select all
frame->usersp = (isUser ? ((int)pmml_alloc(true)+4096) : 0);Code: Select all
pop eax
; Check if argument exists
cmp eax,0
je .exitWhat i am doing wrong?

