MSP430 Assembly Programming Basics Lab What happened if XORB

MSP430 Assembly Programming Basics Lab:

What happened if XOR.B is replaced with XOR.W

Solution

XOR(.B or.W)#0(FF)FFh,dst
-> For inverting bits in destination
-> Arithmetic instructions:
INV(.B or .W) dst
->Operations:
.NOT.dst-> dst

Double Operand Instructions BYU CS 224 Logical and register
control instructions AND (.B or.W) src,dst src.and.dst
dst AND source with destination BIC (.B or.W) src,dst.not.src.and.dst
dst Clear bits in destination BIS (.B or.W) src,dst src.or.dst
dst OR (set) bits in destination BIT (.B or.W) src,dst src.and.dstTest
bits in destination XOR (.B or.W) src,dst src.xor.dst
dst XOR source with destination Data instructions CMP
(.B or.W) src,dst dst-srcCompare source to destination MOV (.B or.W) src,dst src
dst Move source to destination

MSP430 Assembly Programming Basics Lab: What happened if XOR.B is replaced with XOR.WSolutionXOR(.B or.W)#0(FF)FFh,dst -> For inverting bits in destination -

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site