ADD HL,ss

Add HL and register pair ss.
Function: HL <- HL + ss
 
Format:
00ss 1001
 
Description: The contents of the specified register pair are added tot the contents of the HL register pair and the result is stored in HL. ss may be any of:
BC
00
DE
01
HL
10
SP
11
 
Data Flow:
 
Timing: 3 M cycles; 11 T states: 5.5 usec @ 2 MHz
 
Addressing Mode: implicit
 
Byte Codes:
ADD  HL,ss
ss:BCDEHLSP
09192939
 
Flags:
C is set by carry from bit 15, reset otherwise.
H is set by a carry from bit 11.
 
Example:
ADD  HL,HL

OBJECT CODE
Before:
 
After: