Va start

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: va_start

  • None

Use

Initializes a variable argument list.

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_call, va_end, arg_pushl, ret