Unary Operations

InstructionOperandsEffectDescription
neg[bwlq]DD -DNegate
not[bwlq]DD ~DComplement

Binary Operations

InstructionOperandsEffectDescription
xor[bwlq]S, DD D ^ SExclusive-or
or[bwlq]S, DD D | SOr
and[bwlq]S, DD D & SAnd

Bibliography

  • Bryant, Randal E., and David O’Hallaron. Computer Systems: A Programmer’s Perspective. Third edition, Global edition. Always Learning. Pearson, 2016.