Skip to content

function call

wssccc edited this page Sep 17, 2014 · 1 revision

Typical function call instructions

//prepare parameters and push into eax
00000127    string      "before exception"  
00000128    push        %eax

//build a list for parameters
00000129    new_queue   1

//push this list as instant param
00000130    push        %eax

//prepare the calllable
00000131    mov     %eax,[println]

//save eax
00000132    push        %eax

//save env
00000133    push        %env

//perform the call
00000134    call  

//clear 3 stack items      
00000135    pop     %env
00000136    pop     
00000137    pop     
Clone this wiki locally