PIC MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
XORWF f, d
|
|
IORLW K
|
|
IORWF F, D
|
|
XORLW K
|
Detailed explanation-1: -The XOR instruction implements the bitwise XOR operation. The XOR operation sets the resultant bit to 1, if and only if the bits from the operands are different. If the bits from the operands are same (both 0 or both 1), the resultant bit is cleared to 0. XORing an operand with itself changes the operand to 0.
Detailed explanation-2: -MOVWF instruction is used to move the data (bits) from W register to flag register F (copy/move the value from W register to F register).
Detailed explanation-3: -MOVWF 85h. This instruction means “Move The Contents Of W Into The Register Address That Follows”, in this case the address points to TRISA.
Detailed explanation-4: -BCF-Bit Clear f. BSF-Bit Set f. BTFSC-Bit Test f, Skip if Clear. BTFSS-Bit Test f, Skip if Set. BTG-Bit Toggle f.