Difference between revisions of "DELETE THIS - Leti8"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Use)
m (Lemon moved page Leti8 to DELETE THIS - Leti8: Renamed the opcode to something more intuitive, but didn't know at the time how to rename pages.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Syntax==
 
==Syntax==
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>leti8 </span>register, 000000xx</span>
+
''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>leti8 </span>register, xx</span>
  
 
* register = Register to set value
 
* register = Register to set value
* 000000xx = Hex value to set register to.  Only reads the right most bit.
+
* xx = Hex value to set register to.  Only reads the right most bit.
  
 
==Use==
 
==Use==
 
Used to set a register to specific integer value that is stored in a single byte.
 
Used to set a register to specific integer value that is stored in a single byte.
*Name subject to change.
+
 
 +
(Name subject to change.)
  
 
==Example==
 
==Example==

Latest revision as of 21:01, 23 January 2018

Syntax

Syntax: leti8 register, xx

  • register = Register to set value
  • xx = Hex value to set register to. Only reads the right most bit.

Use

Used to set a register to specific integer value that is stored in a single byte.

(Name subject to change.)

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:     leti8  R1, '00000001' //Set R1 to 1
         ret //Function will now return to caller. Function 100

Also see

add_msg, mesend, call, window_msg, ret, let, leti