Difference between revisions of "Set"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
Line 12: Line 12:
 
  <span style='color:green'>        window_msg </span>'This is a one time only message!'
 
  <span style='color:green'>        window_msg </span>'This is a one time only message!'
 
  <span style='color:green'>        winend </span>
 
  <span style='color:green'>        winend </span>
  <span style='color:green'>        set R1 </span>
+
  <span style='color:green'>        set R1 </span><span style='color:orange'>//Set R1 to 1</span>
 
  <span style='color:green'>        ret </span>
 
  <span style='color:green'>        ret </span>
 
  </span>
 
  </span>

Revision as of 07:37, 28 March 2011

Syntax

Syntax: set register

  • register = register to set

Use

Used to set a register to a boolean value of 1 (true).

Example


100:     jmpi_= R1, 00000001, 1 //If Register R1 equals 1 jump to 1
         window_msg 'This is a one time only message!'
         winend 
         set R1 //Set R1 to 1
         ret 

Also see

jmpi_=, window_msg, winend, ret