DECR Examples


Example 1:

 

  

DECR

COUNTER

 

 

Variable

Format

Contents

Before:

COUNTER

4

•••4

 

After:

COUNTER

4

•••3

 

No Condition Flag is set.

 

Example 2:

 

 

Variable

Format

Contents

Before:

COUNTER

4

•••1

 

After:

COUNTER

4

•••0

 

The ZERO flag is set.

 

Example 3:

 

 

Variable

Format

Contents

Before:

COUNTER

4

-999

 

After:

COUNTER

4

-999

 

The OVER Condition Flag is set.

 

Example 4:

 

 

Variable

Format

Contents

Before:

COUNTER

4

••-5

 

After:

COUNTER

4

••-6

 

The LESS Condition Flag is set.

 



PL/B Language Reference DEBUG example DECRYPT Example