Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
WXOR, WXORP
- 242 -
{ WXOR, WXORP ... Exclusive OR of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3
S1
{
{ { { { { {
{
{ { { { { { { { { {
S2
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
4
Setting data
S2
S1
D
Setting data
S
The exclusive OR results
are stored in D device.
D
D
WXORP
S1
D
WXOR
S2
S1 S2
Operation command
WXOR
S
D
WXORP S
D
Operation command
WXOR
WXORP
WXOR
WXORP
Data to be exclusive ORed
or No. of device where
data is stored.
Data to be exclusive ORed
or No. of device where
data is stored.
No. of device to store
exclusive OR results.
Function
WXOR S
D
,
WXORP S
D
Exclusive OR is executed for each bit of the 16-bit data designated with D and designated with S, and
the results are stored in the device designated with D.
Before execution
D
10 1 1101010100010
WXOR,WXORP
00 1 0111110001100
16-bit
After execution
10 0 1010100101110
D
S
WXOR S2S1 D
,
WXORP
S2
S1
D
Exclusive OR is executed for each bit of the 16-bit data designated with S1 and designated with S2,
and the results are stored in the device designated with D.
Before execution
S1
10 1 1101010100010
WXOR,WXORP
00 1 0111110001100
16-bit
After execution
10 0 1010100101110
D
S2