Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 268

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 275
Image 275

MSM80C154S/83C154S/85C154HVS

21.CJNE A, data address, code address

(Compare memory to accumulator, jump if not equal)

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

1

 

0

1

1

 

 

0

1

0

1

Byte 1

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

 

 

a3

a2

a1

a0

Byte 2

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Relative offset

 

R7

R6

R5

R4

 

 

R3

R2

R1

R0

Byte 3

Operations

: (PC)(PC)+3

 

 

 

 

 

 

 

 

 

 

IF (A)(data address)

 

 

 

 

 

 

 

 

 

THEN

 

 

 

 

 

 

 

 

 

 

 

 

(PC)(PC)+relative offset

 

 

 

 

 

 

IF (A)<(data address)

 

 

 

 

 

 

 

 

 

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 accumulator contents are compared with the specified data

 

 

address contents, and 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 specified data address contents are greater than the accumulator contents, but is set to 0 if otherwise.

268

Page 275
Image 275
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 268