Difference between revisions of "Va end"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(No difference)

Revision as of 07:43, 23 May 2014

Syntax

Syntax: va_end

  • None

Use

clear the variable argument list. This MUST be run after every va_start.

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_start, arg_pushl, ret