Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A branch instruction does the following to determine whether to execute a branch

ID: 2079286 • Letter: A

Question

A branch instruction does the following to determine whether to execute a branch or to continue with the next instruction.

uses and modifies the condition code register

ignores the condition code register

directly checks the contents of an accumulator

typically uses a specific combination of condition code flags depending on the type of branch instruction, but does not modify the flags

Flag this Question

Question 2

1 pts

Accumulator A contains $9C. After execution of ASRA, accumulator A contains

$C7

$5E

$B8

none of the above

Flag this Question

Question 3

1 pts

Accumulator B contains $7B, and index register X contains $004C The assembly instruction is

STAB $12, X

After the instruction is executed, the memory or registers are modified such that

address $004C contains $7B

address $005E contains $7B

address $12 contains $7B

index register X contains $7B

Flag this Question

Question 4

1 pts

The CPU does not know whether a binary number is signed or unsigned, but the programmer writes software to use the appropriate instructions to handle the numbers either way.

True

False

Flag this Question

Question 5

1 pts

Typically there are signed and unsigned versions of left and right shift and rotate instructions.

True

False

Flag this Question

Question 6

1 pts

A branch instruction will check and modify CCR flags.

True

False

Flag this Question

Question 7

1 pts

The IDIV instruction

divides the contents of IX by IY to put the quotient in IX and the remainder in IY

divides the contents of ACCD by IX to put the quotient in IX and the remainder in ACCD

divides the contents of ACCD by IX to put the quotient in ACCD and the remainder in IX

divides the contents of IX by ACCD to put the quotient in IX and the remainder in ACCD

Flag this Question

Question 8

1 pts

The following is a segment of an assembly language program

LDAA #$55

ADDA #$35

After execution of the two instructions, the microcontroller state is the following

ACCA = $90, N=0, Z=0, V=1, C=0

ACCA = $8A, N=1, Z=0, V=1, C=0

ACCA = $8A, N=0, Z=0, V=1, C=0

ACCA = $8A, N=1, Z=0, V=0, C=0

Flag this Question

Question 9

1 pts

If unsigned numbers are being used, it is necessary to consider the overflow flag in the CCR.

True

False

Flag this Question

Question 10

1 pts

Port B has the value $5C, and index register X has the value $1000. The following is an assembly language instruction.

BSET $04, X $1A

After execution, the value of Port B is

$5E

$1E

$1A

$5A

uses and modifies the condition code register

Explanation / Answer

2) Accumulator = 9C

ASRA arihemrtic right shift. So in arithmetic right shift msb bit will be remained and rest all bits right shift by one bit. So and will be CE. So option D is correct option