next up previous contents index

[ENGN3213 Home]

Logical Operations

  Bitwise logical instructions are available: AND, OR, EOR and NOT.

For example, the instruction

ANDI.B #%00000001,D0
masks the bits D0[7:1], leaving the least significant bit D0[0] unchanged. This type of operation is useful when the value of a single bit is important.



ANU Engineering - ENGN3213