Difference between revisions of "Let"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
Line 12: Line 12:
 
  <span style='color:blue'>100:    </span><span style='color:green'>leti </span> R1, '0000000A' <span style='color:orange'>\\Set R1 to 10 dec</span>
 
  <span style='color:blue'>100:    </span><span style='color:green'>leti </span> R1, '0000000A' <span style='color:orange'>\\Set R1 to 10 dec</span>
 
  <span style='color:green'>        let </span>R2, R1 <span style='color:orange'>\\Set R2 to the same value as R1</span>
 
  <span style='color:green'>        let </span>R2, R1 <span style='color:orange'>\\Set R2 to the same value as R1</span>
  <span style='color:green'>        ret </span><span style='color:orange'>\\Function will now return to caller. Function 100</span>
+
  <span style='color:green'>        ret </span>
 
  </span>
 
  </span>
  
 
==Related==
 
==Related==
 
[[add_msg]], [[mesend]], [[call]], [[window_msg]], [[ret]], [[leti]]
 
[[add_msg]], [[mesend]], [[call]], [[window_msg]], [[ret]], [[leti]]

Revision as of 13:07, 24 March 2011

Syntax

Syntax: let register1, register2

  • register1 = Register to set value
  • register2 = Register to read value

Use

Used to set a register to the same value of another register

Example


100:     leti  R1, '0000000A' \\Set R1 to 10 dec
         let R2, R1 \\Set R2 to the same value as R1
         ret 

Related

add_msg, mesend, call, window_msg, ret, leti