ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

SUB.B

T2 msp430 alu insn
MSP430 MSP430 16-bit Instruction: SUB.B
SourceLLVM TI MSP430 16-bit MCU ISA Definitions (llvm_msp430_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeTI MSP430 (MSP430 16-bit)
Texas Instruments MSP430 / MSP430X 16-bit MCUs
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/MSP430
Privilegeuser
ExtensionsMSP430 16-bit

Summary

MSP430 SUB.B instruction (MSP430 16-bit, 48-bit) with 12 encoding variants extracted from LLVM TableGen. Effects: load.

Syntax / Encoding

SUB8mi: sub.b $imm, $dst
SUB8ri: sub.b $imm, $rd
SUB8mm: sub.b $src, $dst
SUB8mn: sub.b $rs, $dst
SUB8rm: sub.b $src, $rd
SUB8rn: sub.b $rs, $rd

Binary Encodings (6)

WidthFormatBit PatternMask / Match
48SUB8mixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100000001111xxxx0x00000000fff0 / 0x0000000080f0
48SUB8rixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100000000111xxxx0x00000000fff0 / 0x000000008070
48SUB8mmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1101xxxx0x00000000f0f0 / 0x0000000080d0
48SUB8mnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1110xxxx0x00000000f0f0 / 0x0000000080e0
48SUB8mpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1111xxxx0x00000000f0f0 / 0x0000000080f0
48SUB8mrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1100xxxx0x00000000f0f0 / 0x0000000080c0

Operands

NameDescription
dst
imm
imm
src
rs
rs
rs
rd
src2
wb