Difference between revisions of "Va call"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
Line 22: Line 22:
  
 
==Also see==
 
==Also see==
[[va_call]], [[va_end]], [[arg_pushl]], [[ret]]
+
[[va_start]], [[va_end]], [[arg_pushl]], [[ret]]

Latest revision as of 07:40, 23 May 2014

Syntax

Syntax: va_call function

  • function = The function number to call and push values to.

Use

Calls the specified function and pushes the values to that function.

Example


100:     va_start
         arg_pushl 00000001 //This will set R1 to 1 when passed the the variable argument function
         arg_pushl 00000002 //This will set R2 to 2 when passed the the variable argument function
         arg_pushl 00000003 //This will set R3 to 3 when passed the the variable argument function
         va_call 110
         va_end 
         ret 
110:     window_msg 'Register R1 = <r1>. Register R2 = <r2>. Register R3 = <r3>.'
         winend
         ret 

Also see

va_start, va_end, arg_pushl, ret