Intel 8XC251SP Ljmp, PC ← addr.150, MOV A,#data Binary Mode Source Mode Bytes States Encoding

Models: Embedded Microcontroller 8XC251SP 8XC251SA 8XC251SQ 8XC251SB

1 458
Download 458 pages 25.38 Kb
Page 331
Image 331

INSTRUCTION SET REFERENCE

Hex Code in:

Binary Mode = [Encoding]

 

Source Mode = [Encoding]

Operation:

LJMP

 

(PC) (addr.15:0)

 

 

LJMP @WRj

 

 

Binary Mode Source Mode

Bytes:

States:

[Encoding]

Hex Code in:

Operation:

32

65

1 0 0 0

1 0 0 1

 

 

Binary Mode = [A5] [Encoding] Source Mode = [Encoding]

LJMP

(PC) ((WRj))

t t t t

0 1 0 0

MOV <dest>,<src>

Function: Move byte variable

Description: Copies the byte variable specified by the second operand into the location specified by the first operand. The source byte is not affected.

This is by far the most flexible operation. Twenty-four combinations of source and destination addressing modes are allowed.

Flags:

CY

AC

OV

N

Z

 

 

 

 

 

 

 

 

 

 

Example:

On-chip RAM location 30H contains 40H, on-chip RAM location 40H contains 10H, and

 

input port 1 contains 11001010B (0CAH). After executing the instruction sequence

 

MOV

R0,#30H

;R0 < = 30H

 

MOV

A,@R0

;A < = 40H

 

MOV

R1,A

;R1 < = 40H

 

MOV

B,@R1

;B < = 10H

 

MOV

@R1,P1

;RAM (40H) < = 0CAH

 

MOV

P2,P1

;P2 #0CAH

 

register 0 contains 30H, the accumulator and register 1 contain 40H, register B contains

Variations

10H, and on-chip RAM location 40H and output port 2 contain 0CAH (11001010B).

 

 

 

 

 

 

 

MOV A,#data

 

 

 

 

 

Binary Mode

Source Mode

Bytes:

 

2

2

States:

 

1

1

[Encoding]

0 1 1 1

0 1 0 0

 

 

immed. data

A-79

Page 331
Image 331
Intel 8XC251SP, 8XC251SA, 8XC251SQ, 8XC251SB Ljmp, PC ← addr.150, MOV A,#data Binary Mode Source Mode Bytes States Encoding