Difference between revisions of "Leti"
From Unofficial QEdit Wiki Guide
Line 6: | Line 6: | ||
==Use== | ==Use== | ||
− | Used to set a register to specific value | + | Used to set a register to specific integer value |
==Example== | ==Example== |
Revision as of 12:59, 24 March 2011
Syntax
Syntax: leti register, xxxxxxxx
- register = Register to set value
- xxxxxxxx = Hex value to set register to
Use
Used to set a register to specific integer value
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
Related
add_msg, mesend, call, window_msg, ret