10.07.2015 Views

8088/8086 Instruction I

8088/8086 Instruction I

8088/8086 Instruction I

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

String <strong>Instruction</strong>s CMPSB (CMPSW)— Compare bytes (words) at memory locations DS:SI and ES:DI;update SI and DI according to DF and the width of the data being compared— It modifies flags—Example:Assume: ES = 02A8HDI = 2000HDS = 0510HSI = 0000HCLDMOV CX, 9REPZ CMPSBWhat’s the values of CX afterThe execution?DS : SI0510:00000510:00010510:00020510:00030510:00040510:00050510:000653484F50504552Source StringSHOPPERES : DI02A8:200002A8:200102A8:200202A8:200302A8:200402A8:200502A8:200653484F5050494ESHOPPDestination StringIN8-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!