03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

INSTRUCTION SET DESCRIPTIONS<br />

Table C-4. Instruction Set (Continued)<br />

Name Description Operation<br />

SBB<br />

NOTE:<br />

Subtract With Borrow:<br />

SBB dest, src<br />

Subtracts the source from the destination,<br />

subtracts one if CF is set, and<br />

returns the result to the destination<br />

operand. Both operands may be bytes<br />

or words. Both operands may be<br />

signed or unsigned binary numbers<br />

(see AAS and DAS)<br />

Instruction Operands:<br />

SBB reg, reg<br />

SBB reg, mem<br />

SBB mem, reg<br />

SBB accum, immed<br />

SBB reg, immed<br />

SBB mem, immed<br />

if<br />

(CF) = 1<br />

then<br />

(dest) = (dest) – (src) – 1<br />

else<br />

(dest) ← (dest) – (src)<br />

The three symbols used in the Flags Affected column are defined as follows:<br />

– the contents of the flag remain unchanged after the instruction is executed<br />

the contents of the flag is undefined after the instruction is executed<br />

üthe flag is updated after the instruction is executed<br />

Flags<br />

Affected<br />

AF ü<br />

CF ü<br />

DF –<br />

IF –<br />

OF ü<br />

PF ü<br />

SF ü<br />

TF –<br />

ZF ü<br />

C-41

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

Saved successfully!

Ooh no, something went wrong!