Instruction definition – Rainbow Electronics HT49R70A-1 User Manual

Page 28

Advertising
background image

Instruction Definition

ADC A,[m]

Add data memory and carry to the accumulator

Description

The contents of the specified data memory, accumulator and the carry flag are added si-
multaneously, leaving the result in the accumulator.

Operation

ACC

¬ ACC+[m]+C

Affected flag(s)

TC2

TC1

TO

PD

OV

Z

AC

C

¾

¾

¾

¾

Ц

Ц

Ц

Ц

ADCM A,[m]

Add the accumulator and carry to data memory

Description

The contents of the specified data memory, accumulator and the carry flag are added si-
multaneously, leaving the result in the specified data memory.

Operation

[m]

¬ ACC+[m]+C

Affected flag(s)

TC2

TC1

TO

PD

OV

Z

AC

C

¾

¾

¾

¾

Ц

Ц

Ц

Ц

ADD A,[m]

Add data memory to the accumulator

Description

The contents of the specified data memory and the accumulator are added. The result is
stored in the accumulator.

Operation

ACC

¬ ACC+[m]

Affected flag(s)

TC2

TC1

TO

PD

OV

Z

AC

C

¾

¾

¾

¾

Ц

Ц

Ц

Ц

ADD A,x

Add immediate data to the accumulator

Description

The contents of the accumulator and the specified data are added, leaving the result in the
accumulator.

Operation

ACC

¬ ACC+x

Affected flag(s)

TC2

TC1

TO

PD

OV

Z

AC

C

¾

¾

¾

¾

Ц

Ц

Ц

Ц

ADDM A,[m]

Add the accumulator to the data memory

Description

The contents of the specified data memory and the accumulator are added. The result is
stored in the data memory.

Operation

[m]

¬ ACC+[m]

Affected flag(s)

TC2

TC1

TO

PD

OV

Z

AC

C

¾

¾

¾

¾

Ц

Ц

Ц

Ц

HT49R70A-1

Rev. 1.00

28

December 4, 2001

Advertising