1. (TCO 1) Dynamic memory requires _____ that is not needed for other types of memory. (Points : 8)

      

 

Question 2.2. (TCO 5) 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? (Points : 15)

      
      

 

Question 3.3. (TCO 7) Write a C statement to set Bit 3 of variable foo without changing other bits.(Points : 15)

      
      

 

Question 4.4. (TCO 5) 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. (Points : 25)

      
      

 

Question 5.5. (TCO 6) 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. (Points : 35)

      
      



    • 11 years ago