Intel 8080 manual R 0 I, I D I D

Models: 8080

1 262
Download 262 pages 56.67 Kb
Page 51
Image 51

SUB M (Subtract memory)

(A) ~ (A) - ((H) (L))

The content of the memory location whose address is contained in the Hand L registers is subtracted from the content of the accumulator. The result is placed in the accumulator.

 

 

o

o

 

Cycles:

2

 

 

States:

7

 

 

Addressi ng:

reg. indirect

 

 

Flags:

Z,S,P,CY,AC

 

SUI data

(Subtract immediate)

 

(A) ~ (A) - (byte 2)

 

 

The content of the second byte of the instruction is subtracted from the content of the accumulator. The result is placed in the accumulator.

o

data

Cycles: 2

States: 7

Addressing: immediate

Flags: Z,S,P,CY,AC

SBB r (Subtract Register with borrow)

(A) ~ (A) - (r) - (CY)

The content of register r and the content of the CY flag are both subtracted from the accumulator. The result is placed in the accumulator.

1 I 0 I 0

S I S I S I

Cycles:

1

States:

4

Addressing:

register

Flags:

Z,S,P ,CY ,AC

SBa M (Subtract memory with borrow)

(A) ~ (A) - ((H) (L)) - (CY)

The content of the memory location whose address is

contained in the Hand L registers and the content of

the CY flag are both subtracted from the accumula-

tor. The result is placed in the accumulator.

1 I 0

,

1 I

1 I 1 I 0 I

0

 

 

Cycles:

2

 

 

States:

7

 

Addressing:

reg. indirect

 

 

Flags:

Z,S,P,CY,AC

SBI data (Subtract immediate with borrow)

(A) ~ (A) - (byte 2) - (CY)

The contents of the second byte of the instruction and the contents of the CY flag are both subtracted from the accumulator. The result is placed in the accumulator.

1 I

I 0

o

 

data

 

 

Cycles:

2

 

States:

7

 

Addressing:

immediate

 

Flags:

Z,S,P,CY,AC

INR r (Increment Register)

(r) ~ (r) + 1

The content of register r is incremented by one. Note: All condition flags except CY are affected.

D 1 r 0 I 0

Cycles: 1

States: 5

Addressi ng: register

Flags: Z,S,P,AC

INR M (Increment memory) ((H) (L)) ~ ((H) (L)) + 1

The content of the memory location whose address is contained in the Hand L registers is incremented by one. Note: All condition flags except CY are affected.

o I 0

o

o

o

Cycles: 3

States: 10

Addressing: reg. indirect

Flags: Z,S,P,AC

OCR r(Decrement Register)

(r) ~ (r)-1

The content of register r is decremented by one. Note: All condition flag~ except CY are affected.

0 I 0 I D I D

D I 1 I 0

I 1

Cycles:

1

.f'

States:

5

 

Addressing:

register

 

Flags:

Z,S,P,AC

 

4-7

Page 51
Image 51
Intel 8080 manual R 0 I, I D I D