sub

Subtract the value in xs2 from xs1, and store the result in xd

Synopsis

sub xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd000xs1xs20100000
funct7: 0100000
funct3: 000
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open sub in rvcodecjs

Availability