Preview

Homework

Satisfactory Essays
Open Document
Open Document
343 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Homework
1. HCS12 is a(n) _____-bit microcontroller.
8-bit or 16-bit
3. The immediate value in “LDAA #value” is _______ bits wide. 8
6. What is the result of the following code and where is it kept?
LDAA #$15
ADDA #$13
7. Which of the following instructions is (are) illegal?
(a) LDAA #500 (b) LDAA #50 (c) LDAA #00
(d) LDAA #$255 (e) LDAA #$25 (f) LDAA #$F5
(g) ADDA mybyte, #$50
9. What is the result of the following code and where is it kept?
LDAA #$25
ADDA #$1F
14. True or false. Register space in HCS12 starts at address 0000.
15. True or false. The registers are part of the RAM memory space.
20. What is the difference between the EEPROM and data RAM space in the HCS12?
28. Show a simple code to load values 30H and 97H into locations 805H and 806H, respectively.
32. Identify the addressing mode for each of the following:
(a) STAA PORTB (b) LDAA #$50 (c) STAA $800
(d) LDAA #0 (e) CLRA (f) ABA
49. Find the C flag value after each of the following codes:
(a) LDAA #$54 (b) LDAA #00 (c) LDAA #$FF
ADDA #$0C4 ADDA #$FF ADDA #05

51. State the value (in hex) used for each of the following data:
MYDAT_1 EQU 55
MYDAT_2 EQU 98
MYDAT_3 EQU 'G'
MYDAT _ 4 EQU $50
MYDAT_5 EQU 200
MYDAT _6 EQU ' A'
MYDAT_7 EQU $AA
MYDAT _8 EQU 255
MYDAT_9 EQU %10010000
MYDAT _10 EQU %01111110
MYDAT _ 11 EQU 10
MYDAT_12 EQU 15

56. Which program produces the o file?
57. True or false. The source file has the extension "asm".
58. Which file provides the listing of error messages?

SECTION 2.8: STACK AND DATA TRANSFER INSTRUCTIONS

68. In the HCS12, the stack pointer (SP) points to _____________ (the last used, next available) location of the stack.
69. With each PSHY instruction, the stack pointer register, SP, is _______________ (incremented, decremented) by _______.
70. With each PULY instruction, the SP is _______________ (incremented, decremented) by

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Homework

    • 463 Words
    • 2 Pages

    The GASB provides requirements for investment pools. First, internal investment pools, which account for investments of the reporting entity, are to be spread out to the funds providing the resources, when preparing financial statements. Any governments participate in external investment pools where investment…

    • 463 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    in register R3. This code is simple, and it does not express all the instructions needed to…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Satisfactory Essays

    Quiz Comp Archi

    • 438 Words
    • 3 Pages

    12) Please list registers and their functions in ARM. How many general purpose registers and how to use them in the program?…

    • 438 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    Pointers also have the requirement that the pointer type must be of the same data type as the variable, or the data that it points to or holds the address of. The power of pointers also hints at the potential complexity of their use, which is why this lab is focused almost entirely on several different aspects and uses of pointers. The lab also introduces pointer arrays and pointers to pointers.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Homework

    • 911 Words
    • 4 Pages

    * Harbor Beach Jacket $69.50 Beach Street Jacket $49.50 * Seal Beach Sweater EASY FIT $49.50 * First Jetty Sweater EASY FIT $44.50 * El Morro T-Shirt $17.50 $15 Belmont Shore Top EASY FIT $39.50 * San Elijo Top EASY FIT $34.50 * Manhattan Beach Top EASY FIT $39.50 * Victoria Beach Tank EASY FIT $34.50 River Jetties Top EASY FIT $34.50 * Swami's Beach Tank EASY FIT $17.50 $12 * Swami's Beach Tank EASY FIT $17.50 $12 * Cardiff Tank ONLINE ONLY $17.50 * Laguna Niguel Tank EASY FIT $19.50 $15 *…

    • 911 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Homework

    • 727 Words
    • 3 Pages

    1. Describe Rome in 1402. How did Rome begin to change once the papacy returned to Rome? Why did the papacy rebuild the city? What affect did the papal palaces have on pilgrims according to Paolo Cortesi?…

    • 727 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    Homework

    • 450 Words
    • 3 Pages

    Appendix D JavaScript Objects Read the directions carefully and write JavaScript code that addresses the requirements. Copy your code directly into the appendix document and post your assignment. Write a line of code using the Location object to return the uniform resource locator (URL) of a web page to a variable called myWebPage. Write a line of code using the Navigator object to return the web browser name to a variable called myBrowserName. Write a line of code using the Screen object to return the height of the display screen, not including operating system features such as the Microsoft Windows Taskbar, to a variable called myScreenHeight. Write a line of JavaScript code using the Windows object and other properties to open a new web browser window with the Google home page displaying and no menu bar. html head script…

    • 450 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Homework

    • 443 Words
    • 2 Pages

    2. ________________-the sum of all the chemical reactions that occur within the cells of an organism.…

    • 443 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework

    • 882 Words
    • 3 Pages

    Analyze the Enlightenment ideas of John Locke, Jean-Jacques Rousseau, Montesquieu, and Voltaire that challenged absolutism and influenced the development of limited government.…

    • 882 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab Quiz 5

    • 708 Words
    • 3 Pages

    4. This register is often used to hold a program address but does not usually contain the address of the instruction being executed.…

    • 708 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment 4

    • 634 Words
    • 3 Pages

    #1. How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.…

    • 634 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Tomasulo Loop Example Loop: • • • • LD MULTD SD SUBI BNEZ F0 F4 F4 R1 R1 0 F0 0 R1 Loop R1 F2 R1 #8 This time assume Multiply takes 4 clocks Assume 1st load takes 8 clocks, 2nd load takes 1 clock Clocks for SUBI, BNEZ Show 2 iterations Load=8,1…

    • 2916 Words
    • 12 Pages
    Satisfactory Essays
  • Good Essays

    8085 INSTRUCTION SET INSTRUCTION DETAILS DATA TRANSFER INSTRUCTIONS Opcode Operand Copy from source to destination MOV Rd, Rs M, Rs Rd, M Move immediate 8-bit MVI Rd, data M, data Load accumulator LDA 16-bit address Load accumulator indirect LDAX B/D Reg. pair Load register pair immediate LXI Reg.…

    • 3241 Words
    • 13 Pages
    Good Essays
  • Satisfactory Essays

    Bill of right

    • 896 Words
    • 17 Pages

    Only SI, DI and BX can be used inside [ ] from memory addressing point of view. From…

    • 896 Words
    • 17 Pages
    Satisfactory Essays