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.

REP String <strong>Instruction</strong>Repeat Prefix <strong>Instruction</strong>s— The prefix instruction makes the microprocessor repeatedly execute the string instructionuntil CX decrements to 0 (During the execution, CX is decreased by one when the stringinstruction is executed one time).— For Example:MOV CX, 5REP MOVSBBy the above two instructions, the microprocessor will execute MOVSB 5 times.— Execution flow of REP MOVSB::While (CX!=0){CX = CX –1;MOVSB;}ORCheck_CX: If CX!=0 ThenCX = CX –1;MOVSB;goto Check_CX;end if8-12

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

Saved successfully!

Ooh no, something went wrong!