Intel 8XC251SQ manual Ecall @DRk Binary Mode Source Mode Bytes States Encoding, Ejmp dest Function

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

1 458
Download 458 pages 25.38 Kb
Page 312
Image 312

8XC251SA, SB, SP, SQ USER’S MANUAL

ECALL @DRk

Binary Mode Source Mode

Bytes:

States:

[Encoding]

32

1211

1 0 0 1

1 0 0 1

 

 

u u u u

Hex Code in:

Binary Mode = [A5][Encoding]

 

Source Mode = [Encoding]

Operation:

ECALL

 

(PC) (PC) + 4

 

(SP) (SP) + 1

 

((SP)) (PC.23:16)

 

(SP) (SP) + 1

 

((SP)) (PC.15:8)

 

(SP) (SP) + 1

 

((SP)) (PC.7:0)

 

(PC) ((DRk))

 

 

EJMP <dest>

 

Function:

Extended jump

Description:

Causes an unconditional branch to the specified address by loading the 8 bits of the high

 

order and 16 bits of the low order words of the PC with the second, third, and fourth

 

instruction bytes. The destination may be therefore be anywhere in the full 16-Mbyte

 

memory space.

Flags:

CY

AC

OV

N

Z

 

 

 

 

 

 

 

 

 

 

Example: The label "JMPADR" is assigned to the instruction at program memory location 123456H. The instruction is

EJMP JMPADR

Variations

EJMP addr24

Binary Mode Source Mode

Bytes:

 

5

4

States:

 

6

5

[Encoding]

 

 

 

1 0 0 0

 

1 0 1 0

 

 

 

 

Hex Code in: Binary Mode = [A5][Encoding] Source Mode = [Encoding]

Operation: EJMP

(PC) (addr.23:0)

addr23–

addr16

addr15–addr8

addr7–addr0

A-60

Page 312
Image 312
Intel 8XC251SQ, 8XC251SA manual Ecall @DRk Binary Mode Source Mode Bytes States Encoding, Ejmp dest Function, Ejmp Jmpadr