Register and Data manipulation // LD (LoaD)
The contents of any register r' are loaded to any other register r. r, r' identifies any of the registers A, B, C, D, E, H, or L, assembled as follows in the object code: Register r, C A 111 B 000 C 001 D 010 E 011 H 100 L 101
If the H Register contains the number 8Ah, and the E register contains 10h, the instruction LD H, E results in both registers containing 10h.
ld bc,** 0x01,
3 bytes, 10Tld (bc),a 0x02,
1 bytes, 7Tld b,* 0x06,
2 bytes, 7Tld a,(bc) 0x0A,
1 bytes, 7Tld c,* 0x0E,
2 bytes, 7Tld de,** 0x11,
3 bytes, 10Tld (de),a 0x12,
1 bytes, 7Tld d,* 0x16,
2 bytes, 7Tld a,(de) 0x1A,
1 bytes, 7Tld e,* 0x1E,
2 bytes, 7Tld hl,** 0x21,
3 bytes, 10Tld (**),hl 0x22,
3 bytes, 16Tld h,* 0x26,
2 bytes, 7Tld hl,(**) 0x2A,
3 bytes, 16Tld l,* 0x2E,
2 bytes, 7Tld sp,** 0x31,
3 bytes, 10Tld (**),a 0x32,
3 bytes, 13Tld (hl),* 0x36,
2 bytes, 10Tld a,(**) 0x3A,
3 bytes, 13Tld a,* 0x3E,
2 bytes, 7Tld b,b 0x40,
1 bytes, 4Tld b,c 0x41,
1 bytes, 4Tld b,d 0x42,
1 bytes, 4Tld b,e 0x43,
1 bytes, 4Tld b,h 0x44,
1 bytes, 4Tld b,l 0x45,
1 bytes, 4Tld b,(hl) 0x46,
1 bytes, 7Tld b,a 0x47,
1 bytes, 4Tld c,b 0x48,
1 bytes, 4Tld c,c 0x49,
1 bytes, 4Tld c,d 0x4A,
1 bytes, 4Tld c,e 0x4B,
1 bytes, 4Tld c,h 0x4C,
1 bytes, 4Tld c,l 0x4D,
1 bytes, 4Tld c,(hl) 0x4E,
1 bytes, 7Tld c,a 0x4F,
1 bytes, 4Tld d,b 0x50,
1 bytes, 4Tld d,c 0x51,
1 bytes, 4Tld d,d 0x52,
1 bytes, 4Tld d,e 0x53,
1 bytes, 4Tld d,h 0x54,
1 bytes, 4Tld d,l 0x55,
1 bytes, 4Tld d,(hl) 0x56,
1 bytes, 7Tld d,a 0x57,
1 bytes, 4Tld e,b 0x58,
1 bytes, 4Tld e,c 0x59,
1 bytes, 4Tld e,d 0x5A,
1 bytes, 4Tld e,e 0x5B,
1 bytes, 4Tld e,h 0x5C,
1 bytes, 4Tld e,l 0x5D,
1 bytes, 4Tld e,(hl) 0x5E,
1 bytes, 7Tld e,a 0x5F,
1 bytes, 4Tld h,b 0x60,
1 bytes, 4Tld h,c 0x61,
1 bytes, 4Tld h,d 0x62,
1 bytes, 4Tld h,e 0x63,
1 bytes, 4Tld h,h 0x64,
1 bytes, 4Tld h,l 0x65,
1 bytes, 4Tld h,(hl) 0x66,
1 bytes, 7Tld h,a 0x67,
1 bytes, 4Tld l,b 0x68,
1 bytes, 4Tld l,c 0x69,
1 bytes, 4Tld l,d 0x6A,
1 bytes, 4Tld l,e 0x6B,
1 bytes, 4Tld l,h 0x6C,
1 bytes, 4Tld l,l 0x6D,
1 bytes, 4Tld l,(hl) 0x6E,
1 bytes, 7Tld l,a 0x6F,
1 bytes, 4Tld (hl),b 0x70,
1 bytes, 7Tld (hl),c 0x71,
1 bytes, 7Tld (hl),d 0x72,
1 bytes, 7Tld (hl),e 0x73,
1 bytes, 7Tld (hl),h 0x74,
1 bytes, 7Tld (hl),l 0x75,
1 bytes, 7Tld (hl),a 0x77,
1 bytes, 7Tld a,b 0x78,
1 bytes, 4Tld a,c 0x79,
1 bytes, 4Tld a,d 0x7A,
1 bytes, 4Tld a,e 0x7B,
1 bytes, 4Tld a,h 0x7C,
1 bytes, 4Tld a,l 0x7D,
1 bytes, 4Tld a,(hl) 0x7E,
1 bytes, 7Tld a,a 0x7F,
1 bytes, 4Tld sp,hl 0xF9,
1 bytes, 6Tld (**),bc 0xED43,
4 bytes, 20Tld i,a 0xED47,
2 bytes, 9Tld bc,(**) 0xED4B,
4 bytes, 20Tld r,a 0xED4F,
2 bytes, 9Tld (**),de 0xED53,
4 bytes, 20Tld a,i 0xED57,
2 bytes, 9Tld de,(**) 0xED5B,
4 bytes, 20Tld a,r 0xED5F,
2 bytes, 9Tld (**),hl 0xED63,
4 bytes, 20Tld hl,(**) 0xED6B,
4 bytes, 20Tld (**),sp 0xED73,
4 bytes, 20Tld sp,(**) 0xED7B,
4 bytes, 20Tld ix,** 0xDD21,
4 bytes, 14Tld (**),ix 0xDD22,
4 bytes, 20Tld ixh,* 0xDD26,
3 bytes, 11Tld ix,(**) 0xDD2A,
4 bytes, 20Tld ixl,* 0xDD2E,
3 bytes, 11Tld (ix+*),* 0xDD36,
4 bytes, 19Tld b,ixh 0xDD44,
2 bytes, 8Tld b,ixl 0xDD45,
2 bytes, 8Tld b,(ix+*) 0xDD46,
3 bytes, 19Tld c,ixh 0xDD4C,
2 bytes, 8Tld c,ixl 0xDD4D,
2 bytes, 8Tld c,(ix+*) 0xDD4E,
3 bytes, 19Tld d,ixh 0xDD54,
2 bytes, 8Tld d,ixl 0xDD55,
2 bytes, 8Tld d,(ix+*) 0xDD56,
3 bytes, 19Tld e,ixh 0xDD5C,
2 bytes, 8Tld e,ixl 0xDD5D,
2 bytes, 8Tld e,(ix+*) 0xDD5E,
3 bytes, 19Tld ixh,b 0xDD60,
2 bytes, 8Tld ixh,c 0xDD61,
2 bytes, 8Tld ixh,d 0xDD62,
2 bytes, 8Tld ixh,e 0xDD63,
2 bytes, 8Tld ixh,ixh 0xDD64,
2 bytes, 8Tld ixh,ixl 0xDD65,
2 bytes, 8Tld h,(ix+*) 0xDD66,
3 bytes, 19Tld ixh,a 0xDD67,
2 bytes, 8Tld ixl,b 0xDD68,
2 bytes, 8Tld ixl,c 0xDD69,
2 bytes, 8Tld ixl,d 0xDD6A,
2 bytes, 8Tld ixl,e 0xDD6B,
2 bytes, 8Tld ixl,ixh 0xDD6C,
2 bytes, 8Tld ixl,ixl 0xDD6D,
2 bytes, 8Tld l,(ix+*) 0xDD6E,
3 bytes, 19Tld ixl,a 0xDD6F,
2 bytes, 8Tld (ix+*),b 0xDD70,
3 bytes, 19Tld (ix+*),c 0xDD71,
3 bytes, 19Tld (ix+*),d 0xDD72,
3 bytes, 19Tld (ix+*),e 0xDD73,
3 bytes, 19Tld (ix+*),h 0xDD74,
3 bytes, 19Tld (ix+*),l 0xDD75,
3 bytes, 19Tld (ix+*),a 0xDD77,
3 bytes, 19Tld a,ixh 0xDD7C,
2 bytes, 8Tld a,ixl 0xDD7D,
2 bytes, 8Tld a,(ix+*) 0xDD7E,
3 bytes, 19Tld sp,ix 0xDDF9,
2 bytes, 10Tld iy,** 0xFD21,
4 bytes, 14Tld (**),iy 0xFD22,
4 bytes, 20Tld iyh,* 0xFD26,
3 bytes, 11Tld iy,(**) 0xFD2A,
4 bytes, 20Tld iyl,* 0xFD2E,
3 bytes, 11Tld (iy+*),* 0xFD36,
4 bytes, 19Tld b,iyh 0xFD44,
2 bytes, 8Tld b,iyl 0xFD45,
2 bytes, 8Tld b,(iy+*) 0xFD46,
3 bytes, 19Tld c,iyh 0xFD4C,
2 bytes, 8Tld c,iyl 0xFD4D,
2 bytes, 8Tld c,(iy+*) 0xFD4E,
3 bytes, 19Tld d,iyh 0xFD54,
2 bytes, 8Tld d,iyl 0xFD55,
2 bytes, 8Tld d,(iy+*) 0xFD56,
3 bytes, 19Tld e,iyh 0xFD5C,
2 bytes, 8Tld e,iyl 0xFD5D,
2 bytes, 8Tld e,(iy+*) 0xFD5E,
3 bytes, 19Tld iyh,b 0xFD60,
2 bytes, 8Tld iyh,c 0xFD61,
2 bytes, 8Tld iyh,d 0xFD62,
2 bytes, 8Tld iyh,e 0xFD63,
2 bytes, 8Tld iyh,iyh 0xFD64,
2 bytes, 8Tld iyh,iyl 0xFD65,
2 bytes, 8Tld h,(iy+*) 0xFD66,
3 bytes, 19Tld iyh,a 0xFD67,
2 bytes, 8Tld iyl,b 0xFD68,
2 bytes, 8Tld iyl,c 0xFD69,
2 bytes, 8Tld iyl,d 0xFD6A,
2 bytes, 8Tld iyl,e 0xFD6B,
2 bytes, 8Tld iyl,iyh 0xFD6C,
2 bytes, 8Tld iyl,iyl 0xFD6D,
2 bytes, 8Tld l,(iy+*) 0xFD6E,
3 bytes, 19Tld iyl,a 0xFD6F,
2 bytes, 8Tld (iy+*),b 0xFD70,
3 bytes, 19Tld (iy+*),c 0xFD71,
3 bytes, 19Tld (iy+*),d 0xFD72,
3 bytes, 19Tld (iy+*),e 0xFD73,
3 bytes, 19Tld (iy+*),h 0xFD74,
3 bytes, 19Tld (iy+*),l 0xFD75,
3 bytes, 19Tld (iy+*),a 0xFD77,
3 bytes, 19Tld a,iyh 0xFD7C,
2 bytes, 8Tld a,iyl 0xFD7D,
2 bytes, 8Tld a,(iy+*) 0xFD7E,
3 bytes, 19Tld sp,iy 0xFDF9,
2 bytes, 10T