0
4.7kviews
Explain the 8086 instructions

Explain the following 8086 instructions

a)CMPSB b)DIVAX c)LOOPE again d)REP e)SCASB f) XLATB

1 Answer
0
8views
  • CMPSB-

    Mnemonic: CMPSB (compare string byte)

    Algorithm:

    DS: [SI] – ES: [DI]

    Set flags according to result → OF, SF, ZF, AF, PF, CF

    If DF = 0 then

    SI = SI + 1

    DI = DI + 1 else

    SI = SI – 1

    DI = DI – 1 …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.