12.07.2015 Views

8088/8086 Instruction 2

8088/8086 Instruction 2

8088/8086 Instruction 2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Arithmetic <strong>Instruction</strong>sSUB Destination, Source— Destination - Source Destination— Destination and Source operands can not be memory locations at the same time— It modifies flags AF CF OF PF SF ZFSBB Destination, Source— Destination - Source - Carry Flag Destination— Destination and Source operands can not be memory locations at the same time— It modifies flags AF CF OF PF SF ZFCMP Destination, Source— Destination – Source (the result is not stored anywhere)— Destination and Source operands can not be memory locations at the same time— It modifies flags AF CF OF PF SF ZF (if ZF is set, destination = source)9-3 MUL SourceArithmetic <strong>Instruction</strong>s— Perform unsigned multiply operation— If source operand is a byte, AX = AL * Source— If source operand is a word, (DX AX) = AX * Source— Source operands can not be an immediate data— It modifies CF and OF (AF,PF,SF,ZF undefined) IMUL Source— Perform signed binary multiply operation— If source operand is a byte, AX = AL * Source— If source operand is a word, (DX AX) = AX * Source— Source operands can not be an immediate data— It modifies CF and OF (AF,PF,SF,ZF undefined) Examples:MOV AL, 20HMOV CL, 80HMUL CLMOV AL, 20HMOV CL, 80HIMUL CL9-42

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

Saved successfully!

Ooh no, something went wrong!