Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Question 1. Dynamic memory requires _____ that is not needed for other types of memory.

refresh

data bus buffer

address decoder

dual power supply

Question 2. What is the maximum size of main memory for a processor with a 23-bit address bus?

Eight Mbyte

23 Mbytes

Three Mbytes

8,000,000 bytes

None of the above

Question 3. In a CPU with a 16-bit program counter, what is the maximum, directly accessible code space?

64Kbytes

32KB

2KB

4KB

None of the above

Question 4. The circuit that performs the instruction "ADDA" in the HCS12 CPU is

MMU.

ALU.

cache.

accumulator.

Question 5. Operations performed by the ALU include

decoding instructions.

coordinating data transfer to and from the ALU.

addition and subtraction.

All of the above

None of the above

Question 6. What direction does data flow on a READ bus cycle?

From the CPU to memory or I/O port

From memory or an I/O port into the CPU

From the bus into a memory location

All of the above

None of the above

Question 7. Which of the following is an assembly directive?

"loop:"

"ds.b 1"

"adda"

"bitb"

Question 8. The HCS12 uses _____.

Little Endian

Big Endian

Both A and B

None

Question 9. Which statement about CodeWarrior assembly language is true?

It is case sensitive.

Instructions must start in column other than 1.

Labels never start at Column 1.

All of the above

None of the above

Question 10. Which of the following is wrong?

LDY #$55

LDY #$255

LDY #$20000

LDY #5000

Question 11. What is the value in Accumulator B after the execution of the code below?

ORG $2000

XYZ DC.B 0, 1, 2, 4

ORG $8000

LDY #XYZ

LDAA #04

LDAB #02

BACK ADDB 0, Y

INY

DECA

BNE BACK

HERE BRA HERE
$04

$09

$07

$1009

None of the above

Question 12.The instruction "subb $100" will

subtract the content of Accumulator B from $100.

subtract $100 from Accumulator B.

subtract the content of memory at Address $100 from Accumulator B.

subtract the content of Accumulator B from the content of memory at Address $100.

Question 13. What will be the value in Accumulator A after the following program is executed?

ORG $2000

DATA1 DC.B $55

ORG $8000

LDAA DATA1

LDAB #8

BACK LSLA

DECB

BNE BACK

HERE BRA HERE
63

55

0

1

Question 14. Which flag is used to see if the signed data are correctly added together?

V

C

Z

H

Question 15. In the following program, what is the largest number that Register B can take?

L1 CLRA

NOP

NOP

DECB

BNE L1
255

100

0x200

0x99

Question 16. What C-language construct does the following assembly code implement?

LDAB #10

L1: ADDA 0, x

INX

DECB

BNE L1

Loop

If

If /else

All of the above

None of the above

Question 17. Assume that PORTB has a value of 0x37. Which of the following gives us Unpacked BCD for 7?

PORTB= PORTB & 0x37;

PORTB= PORTB | 0x30;

PORTB= PORTB | 0x0F;

PORTB= PORTB & 0x0F;

Question 18. Fill in the blank to get 0x36 on PORTB.

unsigned char BCD_Byte = 0x67;

unsigned char x;

x= BCD_Byte & 0xF0;

_____;

PORTB = x | 0x30;

x=x>>4;

x=x>>2;

x=x<<4;

x=x<<2;

Question 19. 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

BCLR

PORTB,%00000001

JSR

DELAY

JSR

DELAY

BRA

BACK

75%

66%

33%

25%

Question 20. Find the value for PORTB after the execution of the following code:

PORTB = 0x66 ^ 0xFF;

PORTB = 0x66

PORTB = 0x99

PORTB = 0x0F

PORTB = 0x33

Question 21. Write a program sequence that places the value in Address $1000 into Accumulator A and places the value in Address $1001 in Accumulator B. Then, add these values together and store the result in Location $1002.

Question 22. Where is the return address of the subroutine stored when a subroutine is called? How is this return address retrieved at the end of the subroutine?

Question 23. Write a C statement to set Bit 3 of variable foo without changing other bits.

Question 24. Write a HCS12 assembly-language program that counts all even numbers from a 10-variable, byte-sized array and moves the odd numbers to a new array.

Question 25. Write a C program for a HCS12 microcontroller that writes the value, 0x78, to Memory Location VAR1 and then calls a delay function. The delay function should generate a delay of 0.25 milliseconds. Then, send the pattern 0x99 to Memory Location VAR2 and call the delay function one more time. Repeat this operation eight times using a for loop. Assume that the bus clock frequency is 24MHz. Write the delay using inline assembly language.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91344674
  • Price:- $20

Guranteed 24 Hours Delivery, In Price:- $20

Have any Question?


Related Questions in Programming Language

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As