IAC

Name

Increment accumulator

Function

The content of the accumulator is incremented by 1.

Syntax

IAC

Assembled

Binary

11110010

Decimal

242

Hexadecimal

0xF2

Symbolic

../../_images/iac-sym.png

Execution

1 word, 8-bit code and an execution time of 10.8 \({\mu}\) sec

Side-effects

No overflow sets the carry/link to 0;
Overflow sets the carry/link to a 1.

Implemented

iac

Detailed Description

The contents of the accumulator are incremented by one. The carry bit is set if there is a carry out of the high order bit position, and reset if there is no carry.

The opcode for this instruction does not contain any additional data:

../../_images/iac.png

Examples

Example 1

If the accumulator contains 9, then the IAC operation will be as follows:

Accumulator   =   1 0 0 1
         +              1
                 ---------
 Result      0    1 0 1 0
           Carry

Example 2

If the accumulator contains 15, then the IAC operation will be as follows:

Accumulator   =   1 1 1 1
         +              1
                 ---------
 Result      1    0 0 0 0
           Carry