What is the value in accumulator b

Assignment Help Operating System
Reference no: EM131182976

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

 

A. $04

B. $09

C. $07

D. $1009

E. None of the above

 

Question 2. The instruction “subb $100” will

A. subtract the content of Accumulator B from $100.

B. subtract $100 from Accumulator B.

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

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

 

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

                ORG               $2000

                DATA1 DC.B               $F8

                ORG               $8000

                LDAA             DATA1

                LDAB             #4

               BACK LSLA

                DECB 

                BNE               BACK

                HERE BRA               HERE

A. $80

B. $08

C. 0

D. None of the above

 

Question 4.The MC9S12 instruction set has

A. only one multiply instruction: eight-bit signed.

B. both an eight-bit signed and eight-bit unsigned multiply instruction.

C. only one multiply instruction: eight-bit unsigned.

D. All of the above

E. None of the above

 

 

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

L1                 CLRA

                   NOP

                   NOP

                   DECB

                    BNE               L1

 

A. 255

B. 100

C. 0x200

D. 0x99

 

Question 6.For a 16-bit signed number, we can use a maximum of _____ bits for the magnitude of the signed number.

A. D7-D0

B. D14-D0

C. D16-D0

D. D15-D9

 

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

A. PORTB= PORTB & 0x37;

B. PORTB= PORTB | 0x30;

C. PORTB= PORTB | 0x0F;

D. PORTB= PORTB & 0x0F;

 

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

           unsigned char BCD_Byte = 0x67;

            unsigned char x;

            x= BCD_Byte & 0xF0;

             _____;

            PORTB = x | 0x30;

A. x=x>>4;

B. x=x>>2;

C. x=x<<4;

D. x=x<<2;

 

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

  JSR DELAY  

  JSR DELAY  

  BCLR PORTB,%00000001  

  JSR DELAY  

  BRA BACK  

 

A. 33%

B. 66%

C. 75%

D. 25%

 

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

            PORTB = 0xAA ^ 0x55;

A. PORTB = 0x05

B. PORTB = 0x0A

C. PORTB = 0x0F

D. PORTB = 0xFF

Reference no: EM131182976

Questions Cloud

Give the maximum dimensions of a sheet : Can the machinist get the sheet of plastic inside the machine shop provided that the door dimensions are ? Give the maximum dimensions of a sheet that can be moved inside the shop and explain how.
Find the transfer function for each given system : Find the transfer function, X3(s)/F(s), for each system shown:
Determine the volume of occupied : 1. Determine the volume of occupied by 2.34 grams of carbon dioxide gas at STP. 2. A sample of argon gas at STP occupies 56.2 liters. Determine the number of moles of argon and the mass in the sample.
Describe a time from your own learning experience : Describe a time from your own learning experience that was influenced in either a negative or positive way by the physical learning environment.
What is the value in accumulator b : What will be the value in Accumulator A after the following program is executed
What is the impact on price and quantity in the market : Assume, health officials in Hong Kong simultaneously engaged in the mass slaughter of chicken in an attempt to control the spread of chicken flu and warned consumers against purchasing live chickens. Using demand and supply analysis, what is the i..
Conventional heating and cooling system : A geothermal system is initially more expensive to set up than a conventional heating and cooling system, but the annual operating costs are much cheaper.
Explain the types of intercultural experiences you have had : Tell us something about the types of intercultural experiences you've had, and how these experiences stimulated your interest in studying inter cultural communication.
Determine the damping factor and the bandwidth of the system : It is required to design an electromechanical system to achieve a natural frequency of 1000 Hzand a Q factor of 1200. Determine the damping factor and the bandwidth of the system

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd