CP* n

4

f

* * V *

A - n

 

 

CP* r

2

f

* * V *

A - r

 

 

OR (HL)

5

fr s * * L 0

A = A

(HL)

 

OR (IX+d)

9

fr s * * L 0

A = A

(IX+d)

 

OR (IY+d)

9

fr s * * L 0

A = A

(IY+d)

 

OR n

4

fr * * L 0 A = A n

 

OR r

2

fr * * L 0 A = A r

 

SBC* (IX+d)

9

fr s * * V * A = A - (IX+d)

- CY

SBC* (IY+d)

9

fr s * * V * A = A - (IY+d)

- CY

SBC* A,(HL)

5

fr s * * V * A = A - (HL) -

CY

SBC* A,n

4

fr

* * V *

A = A-n-CY (cout if (r-CY)>A)

SBC* A,r

2

fr

* * V *

A = A-r-CY (cout if (r-CY)>A)

SUB (HL)

5

fr s * * V *

A = A -

(HL)

 

SUB (IX+d)

9

fr s * * V *

A = A -

(IX+d)

 

SUB (IY+d)

9

fr s * * V *

A = A -

(IY+d)

 

SUB n

4

fr

* * V *

A = A -

n

 

SUB r

2

fr

* * V *

A = A -

r

 

XOR (HL)

5

fr s * * L 0 A = [A & ~(HL)] [~A & (HL)]

XOR (IX+d)

9

fr s * * L 0 A = [A

& ~(IX+d)] [~A & (IX+d)]

XOR (IY+d)

9

fr s * * L 0 A = [A

& ~(IY+d)] [~A & (IY+d)]

XOR n

4

fr

* * L 0

A = [A & ~n]

[~A & n]

XOR r

2

fr

* * L 0

A = [A & ~r]

[~A & r]

*SBC and CP instruction output inverted carry. C is set if A<B if the oper- ation or virtual operation is (A-B). Carry is cleared if A>=B. SUB outputs carry in opposite sense from SBC and CP.

19.118-bit Bit Set, Reset and Test

Instruction

clk

A

I S Z V C

Operation

BIT b,(HL)

7

f

s - * - -

(HL) &

bit

BIT b,(IX+d))

10

f

s - * - -

(IX+d)

& bit

BIT b,(IY+d))

10

f

s - * - -

(IY+d)

& bit

BIT b,r

4

f

- * - -

r & bit

 

RES b,(HL)

10

 

d - - - -

(HL) =

(HL) & ~bit

RES b,(IX+d)

13

 

d - - - -

(IX+d)

= (IX+d) & ~bit

RES b,(IY+d)

13

 

d - - - -

(IY+d)

= (IY+d) & ~bit

RES b,r

4

r

- - - -

r = r & ~bit

SET b,(HL)

10

 

b - - - -

(HL) =

(HL) bit

SET b,(IX+d)

13

 

b - - - -

(IX+d)

= (IX+d) bit

SET b,(IY+d)

13

 

b - - - -

(IY+d)

= (IY+d) bit

SET b,r

4

r

- - - -

r = r

bit

19.12 8-bit Increment and Decrement

Instruction

clk

A

I S Z V C

Operation

DEC (HL)

8

f

b * * V - (HL) = (HL) - 1

DEC (IX+d)

12

f

b * * V - (IX+d) = (IX+d) -1

DEC (IY+d)

12

f

b * * V - (IY+d) = (IY+d) -1

DEC r

2

fr

* * V -

r = r - 1

INC (HL)

8

f

b * * V - (HL) = (HL) + 1

INC (IX+d)

12

f

b * * V - (IX+d) = (IX+d) + 1

INC (IY+d)

12

f

b * * V - (IY+d) = (IY+d) + 1

INC r

2

fr

* * V -

r = r + 1

254

Rabbit 3000 Microprocessor

Page 263
Image 263
Jameco Electronics 2000, 3000 manual 19.11 8-bit Bit Set, Reset and Test, 19.12 8-bit Increment and Decrement