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
ASCII code:  An alphanumeric code has to represent 10 decimal digits, 26 alphabets and certain other symbols such as punctuation marks and special characters. Therefore, a min

Problem 1 Perform the following conversion a. (ABE) 16 =() 2 b. (101011) 2 =() 10 2 Explain how full adder adds three bits 3 Explain digital multiplexers

Hypermedia: When the desired webpage loads into your browser you will see the text comes in, the pictures arrives, the animation gets loaded and so on. You will notice that so

Data Processing : Processing data is the most complex function of a computer system. It is where the computer itself (as opposed to a peripheral, e.g. a visual display unit or a p

Question 1 Explain any five different types of computers Question 2 Describe Bus Type LAN. Its disadvantages and advantages and examples Question 3 Describe the

QUESTION Consider a University system which has several sub systems: Student Registration Module Registration Time Tabling Library System Human Resource Manag

Question 1 What do you mean by semantic networks? Explain inheritance in semantic networks Question 2 Explain Partitioned semantic networks with an example Question

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

HTML is a Formatting language which is most commonly used for web documents.

There are two kinds of FCB, the normal, whose length is 37 bytes and the expanded one of 44 bytes. The FCB is created of data given by the programmer and by data which it takes dir