X86-assembly/Instructions/sub

From aldeid
Jump to navigation Jump to search
You are here:
sub

Description

The sub instruction is used to perform a substraction. It modifies the 2 following flags: ZF (Zero Flag) and CF (Carry Flag).

Syntax

sub destination, value

Examples

sub eax, 0x10
Substract 0x10 from EAX.

Comments