pep8, Basic Computer Science

Write an Assembly program that reads an integer (-32,768 through 32,767) in decimal and prints its equivalent in binary. The output must show all 16 bits. And you must use a loop for producing and outputing the bits. You must also use only local variables.
For example, if the input is 120, output should be: 0000000001111000.

If the input is smaller than -32,768 or larger than 32,767, print an error message and read another number until a number in the required range is entered...
Posted Date: 4/22/2012 2:11:40 AM | Location : United States







Related Discussions:- pep8, Assignment Help, Ask Question on pep8, Get Answer, Expert's Help, pep8 Discussions

Write discussion on pep8
Your posts are moderated
Related Questions
Question (a) A firm produces four products: P , Q , R , and S . Each unit of product P requires two hours of milling, one hour of assembly, and $10 worth of in-process in

QUESTION (a) Distinguish between passive and active attacks. (b) Give two reasons why it is important to organise security awareness programs for users. (c) Explain how s

Netbooks: Netbooks are special type of Laptop which is very  light and small. Due to its size and weight it is very portable and one may carry it very easily. Dissimilar to La

What is methods For handling Deadlocks?

In many respect threads operate in the similar way as that of processes. A number of the similarity and differences are: Similarities • Similar to processes threads share CPU and o

Question 1 What is difference between cathode ray tube monitors and LCD monitors? List three popular types of operating systems and give brief introduction of each type Que

What is CAI? Explain its pitfalls.


Question 1 Describe HSV and CMYK color models Question 2 Describe gamma and its importance Question 3 What are the steps involved in image manipulation? Que

Central Processing Unit: A Central Processing Unit (CPU) in a computer system is an extremely fast device as compared to the main memory, but it can not work on its own. It de