Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 264, Then

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 271
Image 271

MSM80C154S/83C154S/85C154HVS

19.CJNE @Rr, #data, code address

(Compare indirect address to immediate data, jump if not equal)

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

1

 

0

1

1

 

 

0

1

1

r

Byte 1

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

#data

 

I7

I6

I5

 

I4

 

 

I3

I2

I1

I0

Byte 2

 

 

7

 

 

 

 

 

 

 

 

 

 

0

 

Relative offset

 

R7

R6

R5

 

R4

 

 

R3

R2

R1

R0

Byte 3

Operations

: (PC)(PC)+3

 

 

 

 

 

 

 

 

 

 

 

IF ((Rr))#data

r=0 or 1

 

 

 

 

 

 

THEN

 

 

 

 

 

 

 

 

 

 

 

 

 

(PC)(PC)+relative offset

 

 

 

 

 

 

IF ((Rr))<#data

r=0 or 1

 

 

 

 

 

 

THEN

 

 

 

 

 

 

 

 

 

 

 

 

 

(C)1

 

 

 

 

 

 

 

 

 

 

 

 

 

ELSE

 

 

 

 

 

 

 

 

 

 

 

 

 

(C)0

 

 

 

 

 

 

 

 

 

 

 

Number of bytes

: 3

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

 

RS1

 

 

RS0

OV

F1

P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The data memory location contents addressed by the register r

 

 

contents are compared with an immediate data value. Control is

 

 

shifted to a relative jump address if the compared data is not

equal. If the compared data is equal, control is shifted to the next address following this instruction. The carry flag is set to 1 if the immediate data value is greater than the specified address contents, but is set to 0 if otherwise.

264

Page 271
Image 271
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 264, Then