16-Bit Load Group

__________________________________________________________________________________________________________________________
Mnemonic        Symbolic            Flags (bit 7-0)   Instruction         Number      Number of   Number of   Comments
                operation           S Z . H . V N C   opcode              of bytes    M cycles    T states
__________________________________________________________________________________________________________________________
LD rr, nn       rr <- nn            * * X * X * * *   00 rr0 001          3           3           10
                                                      -- <nn> --
LD IX, nn       IX <- nn            * * X * X * * *   11 011 101 (DDh)    4           4           14
LD IY, nn       IY <- nn            * * X * X * * *   11 111 101 (FDh)    4           4           14
                                                      00 100 001 (21h)
                                                      -- <nn> --

LD HL,(nn)      L <- (nn)           * * X * X * * *   00 101 010 (2Ah)    3           5           16
                H <- (nn+1)                           -- <nn> --
LD rr,(nn)      rrL <- (nn)         * * X * X * * *   11 101 101 (EDh)    4           6           20
                rrH <- (nn+1)                         01 rr1 011
                                                      -- <nn> --
LD IX,(nn)      IXL <- (nn)         * * X * X * * *   11 011 101 (DDh)    4           6           20
LD IY,(nn)      IXH <- (nn+1)       * * X * X * * *   11 111 101 (FDh)    4           6           20
                                                      00 101 010 (2Ah)
                                                      -- <nn> --

LD (nn),HL      (nn) <- L           * * X * X * * *   00 100 010 (22h)    3           5           16
                (nn+1) <- H                           -- <nn> --
LD (nn),rr      (nn) <- rrL         * * X * X * * *   11 101 101 (EDh)    4
                (nn+1) <- rrH                         01 rr0 011
                                                      -- <nn> --
LD (nn),IX      (nn) <- IXL         * * X * X * * *   11 011 101 (DDh)    4           6           20
LD (nn),IY      (nn+1) <- IXH       * * X * X * * *   11 111 101 (FDh)    4           6           20
                                                      00 100 010 (22h)
                                                      -- <nn> --

LD SP,HL        SP <- HL            * * X * X * * *   11 111 001 (F9h)    1           1           6
LD SP,IX        SP <- IX            * * X * X * * *   11 011 101 (DDh)    2           2           10
LD SP,IY        SP <- IY            * * X * X * * *   11 111 101 (FDh)    2           2           10
                                                      11 111 001 (F9h)

PUSH qq         (SP-1) <- qqL       * * X * X * * *   11 qq0 101          1           3           11
                (SP-2) <- qqH
                SP <- SP-2
PUSH IX         (SP-1) <- IXL       * * X * X * * *   11 011 101 (DDh)    2           4           15
PUSH IY         (SP-2) <- IXH       * * X * X * * *   11 111 101 (FDh)    2           4           15
                SP <- SP-2                            11 100 101 (E5h)

POP qq          qqL <- (SP)         * * X * X * * *   11 qq0 001          1           3           10
                qqH <- (SP+1)
                SP <- SP+2
POP IX          IXL <- (SP)         * * X * X * * *   11 011 101 (DDh)    2           4           14
POP IY          IXH <- (SP+1)       * * X * X * * *   11 111 101 (FDh)    2           4           14
                SP <- SP+2                            11 100 001 (E1h)

                rr:                 qq:
                00 BC               00 BC
                01 DE               01 DE
                10 HL               10 HL
                11 SP               11 AF

 

 

web analytics