0% Plagiarism Guaranteed & Custom Written

Find the value of Register A for the following program.

01 / 10 / 2021 Assignment

This paper circulates around the core theme of Find the value of Register A for the following program. together with its essential aspects. It has been reviewed and purchased by the majority of students thus, this paper is rated 4.8 out of 5 points by the students. In addition to this, the price of this paper commences from £ 99. To get this paper written from the scratch, order this assignment now. 100% confidential, 100% plagiarism-free.

Question 1.1. (TCO 1) The characteristics of dynamic memory compared to static memory are (Points : 8)

higher density, higher cost.

higher density, lower cost.

lower density, higher cost.

lower density, lower cost.

Question 2.2. (TCO 1) Which of the following is volatile memory? (Points : 8)

ROM

RAM

Flash

All of the above

None of the above

Question 3.3. (TCO 1) With a 24-bit address bus, we get _____ bytes of memory space. (Points : 8)

24M

16M

64M

64K

Question 4.4. (TCO 2) Which bus is bidirectional? (Points : 8)

Address

Data

Control

All of the above

None of the above

Question 5.5. (TCO 2) Which bus carries memory contents? (Points : 8)

Data bus

Address bus

Control bus

None of the above

Question 6.6. (TCO 2) The address bus is __________. (Points : 8)

bidirectional

unidirectional

able to be programmed to be either bidirectional or unidirectional

None of the above

Question 7.7. (TCO 3) To use JSR (or CALL) instruction, we must initialize _____ register. (Points : 8)

X

Y

PC

SP

Question 8.8. (TCO 3) Find the value of Register A for the following program.

LDAA #$55

EORA #$AA (Points : 8)

A = $00

A = $FF

A = $7F

None

Question 9.9. (TCO 3) The dollar sign ($) that precedes numbers in MC9S12 assembly language means that (Points : 8)

it is a hexadecimal number.

it is a decimal number.

it is immediate mode.

All of the above

None of the above

Question 10.10. (TCO 3) The largest value (in hex) that can be loaded into Register A of HCS12 is (Points : 8)

$08.

$255.

$65535.

$FF.

Page 2

Question 1.1.(TCO 4) What addressing mode is used for the instruction, INX? (Points : 8)

Direct
Indexed
Inherent
Immediate
None of the above

Question 2.2.(TCO 5) When instruction, “jsr”, is executed, the return address is stored at (Points : 8)

PC.
CCR.
SP.
memory pointed by SP.

Question 3.3.(TCO 5) After the execution of the following code, the value in Register D is:

LDAA #$BB
LDAB #$CC
ANDA #$0F
ANDB #$F0 (Points : 8)

$FFFF.
$CCBB.
$C00B.
$0BC0.
None of the above

Question 4.4.(TCO 5) Which bit is used to indicate the sign of a 16-bit signed number? (Points : 8)

D0
D15
D7
D1

Question 5.5.(TCO 5) In the following program, the maximum number of iterations is limited to _________.

L1 CLRA
NOP
NOP
DECB
BNE L1 (Points : 8)

255
100
0x200
0x99

Question 6.6.(TCO 7) What C-language construct does the following assembly code implement?

cmpb #10
bpl ADD37H
addb #$30
bra CONT
ADD37H:
addb #$37
CONT:
stab 0,x (Points : 8)

Loop
If
If /else
All of the above
None of the above

Question 7.7.(TCO 8) Assume that PORTB has a value of 0x37. Which of the following gives us unpacked BCD for 7? (Points : 8)

PORTB = PORTB & 0x37;
PORTB = PORTB | 0x30;
PORTB = PORTB | 0x0F;
PORTB = PORTB & 0x0F;

Question 8.8.(TCO 8) The following program creates square wave pulses on PB0. What is the duty cycle?


ORG

$8000


LDS

#$4000


LDAA

#$FF


STAA

DDRB

BACK

BSET

PORTB,%00000001


JSR

DELAY


JSR

DELAY


BCLR

PORTB,%00000001


JSR

DELAY


JSR

DELAY


BRA

BACK

(Points : 8)

75%
66%
50%
25%

Question 9.9.(TCO 8) Find the value for PORTB after the execution of the following code:

PORTB = 0x55 ^ 0xFF; (Points : 8)

PORTB = 0x05
PORTB = 0x0A
PORTB = 0xAA
PORTB = 0xFF

Question 10.10.(TCO 8) Fill in the blank to get 0x38 on PORTB.

unsigned char BCD_Byte = 0x89;
unsigned char x;
x = BCD_Byte & 0xF0;
_____;
PORTB = x | 0x30; (Points : 8)

x=x>>4;
x=x>>2;
x=x<<4;
x=x<<2;

Page 3

Question 1.1.(TCO 4) Write the assembly code to specify
a word constant named num1 that has a value of $5423.
a byte constant named num2 that has a value of 15.
a word variable named big. (Points : 15)