Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(1 point) Assume TEMP = 0x02 prior to the execution of the following instructions. What will be the status (Set or Clear) of Z, C

(1 point) Assume TEMP = 0x02 prior to the execution of the following instructions. What will be the status (Set or Clear) of Z, C flags after execution of the following programs?

MOVLW 0XFD

ADDWF TEMP, 1

C= Z=

(1 point) Assume TEMP = 0x02 prior to the execution of the following instructions. What will be the status (Set or Clear) of Z flags after execution of the following programs?

MOVLW 0X60

ANDWF TEMP, 1

Z=

(1 point) Assume TEMP = 0x02 prior to the execution of the following instructions. What will be the status (Set or Clear) of Z flags after execution of the following programs?

DECF TEMP, 1

DECF TEMP, 1

Z=

(1 point) Assume TEMP = 0x02 prior to the execution of the following instructions. What will be the status (Set or Clear) of Z, C flags after execution of the following programs?

MOVLW 0X04

SUBWF TEMP, 1

Z= C=

(7 points) Assume TEMP = 0x0F and W= 0xAA prior to the execution of each of the following instructions. What will be content of TEMPE and W after execution of each of the following programs?

INCF TEMP,1 TEMP= W=

BSF TEMP, 4 ;TEMP= W=

BCF TEMP, 2 ;TEMP= W=

DECF TEMP,1 ;TEMP= W=

ANDWF TEMP,1 ;TEMP= W=

IORWF TEMP, 0 ;TEMP= W=

XORWF TEMP, 1 ;TEMP= W=

(7 points) Assume COUNT1 = 0x0F, COUNT2 = 0X 02, and W= 0X0A prior to the execution of each of the following programs. Will INCF YY, 1 instruction be executed in each of the following programs (Answer Yes or No):

BTFSS COUNT1, 3

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

BTFSC COUNT2, 2

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

DECF COUNT2, 1

BTFSS STATUS, Z

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

DECF COUNT2, 1

BTFSS STATUS, Z

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

ANDWF COUNT1, 0

BTFSS STATUS, Z

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

SUBWF COUNT2, 1

BTFSC STATUS, C

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

SUBWF COUNT2, 1

BTFSS COUNT2, 7

INCF YY, 1 ; WILL THIS BE EXECUTED? Answer:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

2. What are the prospects for these occupations?pg 87

Answered: 1 week ago