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

  Program to test the class myarray

Create and implement the class myArray that solves the array index out of bound problem and also permit the user to start the array index starting at any integer, positive or negative.

  Finding server side software

Find the Internet to search server side software that is needed to be installed on the hospital's servers to support access by your local hospital doctors to patients' data using their cellular phones or PDAs.

  1 what does it mean to say that a programming language is

1. what does it mean to say that a programming language is machine independent?2. name and describe four different

  Designing the instruction set

For a 3-operand ADD instruction that only uses register addressing mode, how long (number of bits) should the instruction be?

  What are legal and ethical ramifications of honeypot use

What types of honeypots are there? What are they used for? What are legal and ethical ramifications of honeypot use? If you were a Chief Information Security Officer (CISO) would you use one, and why?

  Create a simple file system explorer gui

For each of the four pieces of information identified above, you are to write a recursive method to calculate it. You are also to create JUnit test cases for the methods.) Two of the methods will need to return two values (a name/size or a name/..

  What makes vista a better (or worse) choice for home

Investigate the net for information about some of the new features offered by Vista over previous operating systems or operating systems on other computing environments

  Empirical analysis of an algorithm

Submit a write-up as well as your program. Your write-up should include analysis of performance measure with various parameter values, any known bugs, limitations, and assumptions in your program. This write-up should be in text-format and titled ..

  Advantage of modularizing code

Imagine you are a part of a team that is tasked with writing a mobile application (app) that will allow users to send pictures to their friends. The manager does not want to waste time creating code modules. Describe at least one (1) advantage of ..

  Describe the windows kernel

Describe the Windows kernel, including its two main components.

  Explain an ip address

Explain an IP address. Explain Class A, B, and C networks. Are a MAC address and an IP address the similar thing?

  How operating system is clearly superior for any application

Consider the advantages and disadvantages of each major operating system that Amy might use on the Web server. If you don't think that one operating system is clearly superior for this application, describe why.

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