The octal representation of an integer is . If this were to be treated as an eight-bit integer in an based computer, its decimal equivalent is
View worked solution
Answer: D
To find the decimal equivalent of the octal number when treated as an 8-bit signed integer on an 8085-based computer, we follow these steps:
Step 1: Convert the octal number to binary
Each octal digit is represented by 3 bits:
Step 2: Represent as an 8-bit integer
Since the 8085 is an 8-bit processor, we take the 8 least significant bits (LSBs):
Step 3: Determine the decimal value
In the 8085 microprocessor, signed integers are represented in 2's complement form. Since the most significant bit (MSB) is , the number is negative.
To find its magnitude, we take the 2's complement of :
- Find the 1's complement:
- Add :
Since the original MSB was , the decimal equivalent is .
Therefore, the correct option is D.
Free practice · Your answers on this page are not saved.
