19.13 8-bit Fast A Register Operations

Instruction

clk

A

I S Z V C

Operation

CPL

2

r

- - - -

A = ~A

NEG

4

fr

* * V *

A = 0 - A

RLA

2

fr

- - - *

{CY,A} = {A,CY}

RLCA

2

fr

- - - *

A = {A[6,0],A[7]}; CY = A[7]

RRA

2

fr

- - - *

{A,CY} = {CY,A}

RRCA

2

fr

- - - *

A = {A[0],A[7,1]}; CY = A[0]

19.14 8-bit Shifts and Rotates

RL, RLA

C

 

SLA

 

 

RLC, RLCA

C

 

SRA

RR, RRA

 

C

SRL

RRC, RRCA

 

C

 

C

 

 

 

 

0

 

 

 

C

0

 

 

 

 

C

 

 

 

 

Instruction

clk

A

I S Z V C

Operation

RL (HL)

10

f

b * * L *

{CY,(HL)} = {(HL),CY}

RL (IX+d)

13

f

b * * L *

{CY,(IX+d)} = {(IX+d),CY}

RL (IY+d)

13

f

b * * L *

{CY,(IY+d)} = {(IY+d),CY}

RL r

4

fr

* * L *

{CY,r} = {r,CY}

RLC (HL)

10

f

b * * L *

(HL) = {(HL)[6,0],(HL)[7]};

 

 

 

 

CY = (HL)[7]

RLC (IX+d)

13

f

b * * L *

(IX+d) = {(IX+d)[6,0],

 

 

 

 

(IX+d)[7]}; CY = (IX+d)[7]

RLC (IY+d)

13

f

b * * L *

(IY+d) = {(IY+d)[6,0],

 

 

 

 

(IY+d)[7]}; CY = (IY+d)[7]

RLC r

4

fr

* * L *

r = {r[6,0],r[7]}; CY = r[7]

RR (HL)

10

f

b * * L *

{(HL),CY} = {CY,(HL)}

RR (IX+d)

13

f

b * * L *

{(IX+d),CY} = {CY,(IX+d)}

RR (IY+d)

13

f

b * * L *

{(IY+d),CY} = {CY,(IY+d)}

RR r

4

fr

* * L *

{r,CY} = {CY,r}

RRC (HL)

10

f

b * * L *

(HL) = {(HL)[0],(HL)[7,1]};

 

 

 

 

CY = (HL)[0]

RRC (IX+d)

13

f

b * * L *

(IX+d) = {(IX+d)[0],

 

 

 

 

(IX+d)[7,1]}; CY = (IX+d)[0]

RRC (IY+d)

13

f

b * * L *

(IY+d) = {(IY+d)[0],(

 

 

 

 

IY+d)[7,1]}; CY = (IY+d)[0]

RRC r

4

fr

* * L *

r = {r[0],r[7,1]}; CY = r[0]

SLA (HL)

10

f

b * * L *

(HL) = {(HL)[6,0],0}; CY =

 

 

 

 

(HL)[7]

SLA (IX+d)

13

f

b * * L *

(IX+d) = {(IX+d)[6,0],0};

 

 

 

 

CY = (IX+d)[7]

SLA (IY+d)

13

f

b * * L *

(IY+d) = {(IY+d)[6,0],0};

 

 

 

 

CY = (IY+d)[7]

 

 

 

 

 

User’s Manual

 

 

 

255

Page 264
Image 264
Jameco Electronics 3000, 2000 manual 19.13 8-bit Fast a Register Operations, 19.14 8-bit Shifts and Rotates