Sonic Alert msm85c154hvs Clock Radio User Manual


 
MSM80C154S/83C154S/85C154HVS
330
71. MOVC A, @A + PC
(Move code memory offset from program counter to accumulator)
10000011
70
Instruction code
Operations
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example MOVC A, @A+PC
Instruction code
: Byte 1
(PC)(PC)+1
(A)((A)+(PC))
:
C AC F0 RS1 RS0 OV F1 P
:
:
:
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.
:
1
2
10000011
70
Byte 1
Before execution After execution
:
Program counter
15 8
0000001000100000
70
Program counter
15 8
0000001000100001
70
Accumulator
11100000
70
Accumulator
11101110
70
0301H
11101110
70
0301H
11101110
70