Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 330

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 337
Image 337

MSM80C154S/83C154S/85C154HVS

71.MOVC A, @A + PC

(Move code memory offset from program counter to accumulator)

 

 

 

7

 

 

 

 

 

 

 

0

Instruction code

:

 

1

0

0

0

 

0

0

1

1

Operations

: (PC)(PC)+1

 

 

 

 

 

 

 

 

(A)((A)+(PC))

 

 

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

 

RS0

OV

F1

P

Byte 1

(PSW)

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The program counter contents following an increment are

 

 

added to the accumulator contents, and after temporary storage

 

 

of the sum in the program counter, the ROM data contents

 

 

specified by the program counter are stored in the accumulator.

 

 

The program counter contents are then restored to former

 

 

contents, and the flag is also updated.

Example MOVC A, @A+PC

 

 

 

 

 

 

 

 

 

 

 

7

0

 

 

 

 

 

Instruction code

:

1 0 0 0

 

0 0 1 1

Byte 1

Before execution

Accumulator

1 1 1 0 0 0 0 0

7

0

Program counter

Program counter

After execution Accumulator

1 1 1 0 1 1 1 0

70

0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0

0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1

15

8

7

0

 

 

0301H

 

1 1 1 0 1 1 1 0

70

15

8

7

0

 

 

0301H

 

1 1 1 0 1 1 1 0

70

330

Page 337
Image 337
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 330