sub

Assembly Syntax

sub regrs1, reg_or_imm, regrd

op3

000100

Operation

Subtract reg_or_imm from the contents of register regrs1 and place result in regrd.

Comments

none

Example

sub %r1, %r2, %r3

Example

sub %r1, 1, %r3

Instruction format

Instruction format

Home Page Index Page All Arithmetic Instructions