Difference between revisions of "Ret"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
Line 18: Line 18:
 
  </span>
 
  </span>
  
==Related==
+
==Also see==
 
[[add_msg]], [[mesend]], [[call]], [[window_msg]], [[leti]]
 
[[add_msg]], [[mesend]], [[call]], [[window_msg]], [[leti]]

Latest revision as of 07:16, 28 March 2011

Syntax

Syntax: ret

  • None

Use

Used to return function back to caller

Example


100:     window_msg  'You have seen this <R1> time(s)' //Display message that prints the value of R1
         call 101 //Call function 101
         msg_add  'You have seen this <R1> time(s)' //Display message with the new value of R1
         mesend 
         ret
101:     leti  R1, '00000001' //Set R1 to 1
         ret //Function will now return to caller. Function 100

Also see

add_msg, mesend, call, window_msg, leti