Q-Code User Manual
Ver. 7.0 2021/11/30
148
4.3.23 Ri = Px – Rj
Subtract Rj from Px and keep the result in Ri.
Ex.
R0=0x3, PB=0x4, R1=PB-R0
; R1=0x1
4.3.24 Ri = Px | Rj
Px OR Rj and keep the result in Ri.
Ex.
PB=0x3, R0=0x4, R1=PB|R0
; R1=0x7
4.3.25 Ri = Px ^ Rj
Px XOR Rj and keep the result in Ri.
Ex.
PB=0x3, R0=0x4, R1=PB^R0
; R1=0x7
4.3.26 Ri = Px & Rj
Px AND Rj and keep the result in Ri.
Ex.
PB=0x3, R0=0x4, R1=PB&R0
; R1=0x0
4.3.27 Px = Py + data
Sum up the values of Py and data, and then assign output value to Px.
Ex.
PB=0x3, PB=PB+0x4
; PB=0x7
4.3.28 Px = Py – data
Subtract data from Py and keep the result in Px.
Ex.
PB=0x3, PB=PB-0x2
; PB=0x1
4.3.29 Px = Py | data
Py OR data and keep the result in Px.
Ex.
PB=0x3, PB=PB | 0x4
; PB=0x7
4.3.30 Px = Py ^ data
Py XOR data and keep the result in Px.
Ex.
PB=0x3, PB=PB^0x4
; PB=0x7