Written 2 - James Burton Written Assignment 2 1234567 Section 2.1 Problems 1 \u2013 10 HCS12 is a 16-bit microcontroller Register A is 8 bits wide The

Written 2 - James Burton Written Assignment 2 1234567...

This preview shows page 1 - 4 out of 4 pages.

James Burton Written Assignment 2 August 10, 2020
Section 2.1 Problems # 1 – 10 1- HCS12 is a 16-bit microcontroller 2- Register A is 8 bits wide 3- The immediate value in LDAA #value is 8 bits wide 4- The largest number that can be loaded into A is FF in hex 5- Necessary 6- It will result in the register A having 28H stored 7- A-illegal B-legal C-legal D-illegal E-legal F-legal G-illegal 8- A-illegal B-legal C-illegal D-illegal E- legal F-legal G-legal 9- What is the result of the following code and where it is kept? LDAA#$25 ADDA#$1f The result is FFH stored at register A
10- What is the result of the following code and where it is kept? LDAA#$15 ADDA#$EA The result is FFH stored in register A Section 2.3 Problems # 31 – 33 31- Which of the following are an invalid use of immediate addressing mode? A-LDAA#$24 B-LDAA#$30- this is invalid because it isn’t immediate it is extended C-LDAA#$60 32- Identify the addressing mode for each of the following A- STAA PORTB-direct B- LDAA#$50-immediate C- STAA$800-extended D- LDAA#0-immediate E-

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture