PIC MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
W
|
|
F
|
|
INDF
|
|
FSR
|
Detailed explanation-1: -The destination designator specifies where the result of the operation is to be placed. If ādā is zero, the result is placed in the W register. If ādā is one, the result is placed in the file register specified in the instruction.
Detailed explanation-2: -The DEC instruction is used for decrementing an operand by one. It works on a single operand that can be either in a register or in memory.
Detailed explanation-3: -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-4: -After the last loop instruction ( ADDWF R1, W ), DECF instruction is used to decrement the loop counter. BNZ conditional branch instruction is placed immediately after DECF . Code branches to the start of the loop if zero flag bit (Z) is not zero. Otherwise the code continues to the instruction immediately after BNZ .
Detailed explanation-5: -ADDWF-Add WREG to f. ADDWFC-Add WREG and Carry bit to f. ANDWF-AND WREG with f. CLRF-Clear f. COMF-Complement f. CPFSEQ-Compare f with WREG, skip = CPFSGT-Compare f with WREG, skip if > CPFSLT-Compare f with WREG, skip if < More items