As it was described in the class, the microprocessor has a single hardware unit
ID: 3706179 • Letter: A
Question
As it was described in the class, the microprocessor has a single hardware unit (Arithmetic Logic Unit) for arithmetic operations. That means, both si well as unsigned operations are performed by the same unit. How then does t microprocessor distinguish between the signed and unsigned data? II. he III. Consider the subtractions 26-27-99 and 18-34-84. Explain how these answers (99 and 84) can be interpreted as the correct signed results of these subtractions? Note that all the numbers are decimal numbers. (Hint: subtraction through compliments) IV. Convert the decimal number 258 to Binary coded decimalExplanation / Answer
II. Numbers are stored in an 8 bit register in ALU. The Most Significant Bit (left most bit) is reserved for sign bit, where 1 means negative number while 0 indicates a positive number. This is how micrprocessors like 8085 distinguish between signed and unsigned number. The sign information is stored in Sign flag register.
IV. Convert decimal number to BCD:
258 = 2 in binary 5 in binary 8 in binary = (001001011000)BCD
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.