ADM

Name

Addd DATA RAM to accumulator with carry

Function

The content of the previously selected RAM main memory
character is added to the accumulator with carry.

Syntax

ADM

Assembled

Binary

11101011

Decimal

235

Hexadecimal

0xEB

Symbolic

../../_images/adm-sym.png

Execution

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

Side-effects

Depending on the result, the carry bit is reset or set.

Implemented

adm

Detailed Description

The DATA RAM data character specified by the last SRC instruction, plus the carry bit, are added to the accumulator. The carry bit will be set if the result generates a carry, otherwise. the data character is not affected.

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

../../_images/adm.png

Example

In this example, the carry bit = 0, the accumulator contains a value of 10, and DATA RAM character 0 of register 0 of chip 0 contains 7.

/ Example
        FIM   0P    0
        SRC   0P
        ADM

The adm operation above is carried out as follows:

   Accumulator   =   1 0 1 0
Data Character   =   0 1 1 1
Carry            =         0
                     -------
   Result      1     0 0 0 1

The accumulator contains 1 and the carry bit is set.