Letb

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: letb 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.

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:     letb  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, letw