Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
WXNR, WXNRP
- 246 -
{ WXNR, WXNRP ... Non-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 non-exclusive OR results
are stored in D device.
D
D
WXNRP
S1
D
WXNR
S2
S1 S2
WXNR
S
D
WXNRP S
D
Non-exclusive operation command
WXNR
WXNRP
WXNR
WXNRP
Data to be non-exclusive
ORed or No. of device
where data is stored.
Data to be non-exclusive
ORed or No. of device
where data is stored.
No. of device to store
non-exclusive OR results.
Non-exclusive operation command
Function
WXNR S
D
,
WXNRP S
D
Non-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
WXNR S2S1 D
,
WXNRP
S2
S1
D
Non-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