AND Examples


Example 1:

 

  

AND

SENDING TO RECVING

 

 

Variable

PL

FP

LP

Contents

Before:

SENDING

6

3

6

ABCDEF

 

RECVING

8

1

8

N2345678

 

After:

SENDING

6

3

6

ABCDEF

 

RECVING

8

1

8

B2345678

 

No Condition Flags are set (all FALSE).

 

     'C' ==> 0100 0011

     'N' ==> 0100 1110

     --------------------

     'B' ==> 0100 0010

 

Example 2:

 

  

AND

HEX_FFF0 COUNTER

 

 

Variable

PL

FP

LP

Contents

Before:

HEX_FFF0

2

 

 

0x11111111 11110000

 

COUNTER

2

 

 

0x0 01110111

After:

COUNTER

2

 

 

0x0 01110000

 

No Condition Flags are set (all FALSE).

 

     0xFFF0 ==> 1111 1111 1111 0000

        119 ==> 0000 0000 0111 0111

     -------------------------------

        116 ==> 0000 0000 0111 0000

 



PL/B Language Reference ALERT Examples APPEND Examples