Ask Operating System Expert

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

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M91939080
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Operating System

Research types of operating systems that are currently

Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Explain why you think the choice you made ...

Question research hex editors available for mac os and

Question : Research hex editors available for Mac OS and Linux. Based on the documentation, how easy would validating these tools be? Select at least two hex editors for each OS, and discuss what you would do to validate ...

Foundation of information technologyresearch types of

Foundation of Information Technology Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Expl ...

Assignment -building a multi-threaded web server using c

Assignment - Building a multi-threaded web server using C and p threads, following the model from the lecture. Your program will have one thread acting as a dispatcher thread, listening fornetwork connections with reques ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

Question what do you see as the major differences between

Question : What do you see as the major differences between UNIX/Linux and other operating systems, such as Windows and Mac OS X? The response must be typed, single spaced, must be in times new roman font (size 12) and m ...

Question description of lasa in this assignment you will

Question: Description of LASA: In this assignment, you will select a real-world operating system (can be for a PC, server, tablet, handheld, or embedded device). You will introduce the operating system and its components ...

Discussion question this research assignment will give

Discussion Question : This research assignment will give further information on the nature and workings of multi-tasking and multi-processing operating systems. All information reported in this assignment is to be in the ...

Taskyour job in this assignment is to create two virtual

Task Your job in this assignment is to create two Virtual machines each running a different but the latest distribution of Linux e.g. Ubuntu Server and CentOS. Each of these VM's is to offer services to a user base. The ...

State the required answer precisely and then provide proper

State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. Briefly describe the following concepts and indicate how they are related in the context ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As