Ori

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: ori register1, xxxxxxxx

  • register1 = Register to perform bitwise OR function on
  • xxxxxxxx = Integer to perform bitwise OR function with

Use

Used to perform a bitwise OR operation of one register with an integer value. For performing OR on registers with other registers see or

Example


100:     leti R1, 0000000A //Set R1 to 00000000000000000000000000001010
         window_msg 'Register 1 = <r1>' //Display the value of R1 in a window message currently 10
         ori R1, 0000000C //R1 OR 00000000000000000000000000001100
         add_msg 'Register 1 = <r1>' //Display the new value of R1 in a window message now 14
         winend  //Close window message
         ret 

Also see

leti, window_msg, add_msg, winend, ret