risc-v Definition sub (RISC-V) Subtracts the value of register c from register b and stores the result in register a. sub a, b, c Equivalent C code: a = b - c