What is the result of the following code and where is

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

We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Guide to Operating System
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 2
Guide to Operating System
Tomsho
Expert Verified
9.What is the result of the following code and where is it kept?LDAA #$25ADDA #$1Fresults in 44H stored at register A10.What is the result of the following code and where is it kept?LDAA #$15ADDA #$EAresults in FFH stored at register ASection 2.3 Problems # 31 – 3331.Show a simple code to load value 5FH into Port B.LDAA #$5FSTAA PORTB 32.Which of the following is an invalid use of the immediate addressing mode?a. LDAA #$24b. LDAA $30 This is incorrect, this is not immediate addressing, but rather extended.c.LDAA #$6033.Indicate the size of instruction for each of the following:a.STAA PORTB-3 byteb.LDAA #$50-2 bytec.STAA $200-3 byted.LDAA #0-2 bytee.CLRA-1 bytef.ABA-1 byteSection 3.1 Problems # 1 - 101.In the HCS12, looping action with the instruction “BNE target” is limited to 255iterations.2.If a conditional branch is not taken, what is the next instruction to be executed? Next in code.3.In calculating the target address for a branch, a displacement is added to the contents of register PC.4.The mnemonic BRA stands for branch always, and it is a 2byte instruction.
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Guide to Operating System
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 2
Guide to Operating System
Tomsho
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture