51 51 votes The octal representation of an integer is $(342)_8$. If this were to be treated as an eight-bit integer in an $8085$ based computer, its decimal equivalent is$226$$-98$$76$$-30$ Digital Logic gate1998 digital-logic number-representation normal + – Kathleen 14.3k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply amitarp818 commented Aug 27, 2023 reply Follow flag Important line: If this were to be treated as an eight-bit integer in an 8085 2 2 replyShare Sudo_404_Div commented Jun 13, 2025 i edited by Sudo_404_Div Jun 13, 2025 reply Follow flag “The architects of the early integrated‑circuit‑based CPUs (Intel 8080, etc.) also chose to use two’s complement math... two’s complement technology was adopted in virtually all processors…” Since the 8085 is binary-compatible and an evolution of the 8080, it follows the same representation standard.PROOFNOTE: For almost all computing devices, the 2's complement system is used. 3 3 replyShare js__ commented Sep 24, 2025 reply Follow flag If a question mentions an "integer" in the context of a processor (like 8085, ARM, x86) and doesn't specify unsigned assume it's a signed integer represented in 2's complement. 2 2 replyShare Please log in or register to add a comment.
Best answer 75 75 votes $(3\; 4\; 2)_8 = (011 \; 100 \; 010)_2 = (11100010)_2.$ If we treat this as an 8 bit integer, the first bit becomes sign bit and since it is "1", number is negative. 8085 uses 2's complement representation for integers and hence the decimal equivalent will be $-(00011110)_2 = -30.$ Correct Answer: $D$ Arjun answered Mar 5, 2016 • edited May 21, 2019 by Naveen Kumar 3 Arjun comment Share Follow See all 12 Comments 12 12 Comments reply Show 9 previous comments jatin khachane 1 commented Nov 10, 2018 reply Follow flag But where it is mentioned that numbers are stored n 2's complement representation ? Is it by default ?? 1 1 replyShare Shaik Masthan commented Nov 11, 2018 reply Follow flag given that, implemented in computer ===> 2's complement representation. 9 9 replyShare manya03 commented Jul 20, 2025 reply Follow flag what is the significance of specifically mentioning 8085 in the question... 0 0 replyShare Please log in or register to add a comment.
21 21 votes First, write for each decimal equivalent binary code : since 8 = 23 write each digit in 3-bit binary (342)8 = (011 100 010)2 ignore initial zero (342)8 = (226)10 = (11100010)2 since all processor use 2's complement number system(2's complement number system is weighted number system) so 11100010 is a negative number 11100010 = 100010 = -25 + 2 = -30 correct answer D Raja Rawal answered Nov 4, 2018 Raja Rawal comment Share Follow See 1 comment 1 1 comment reply Gurdeep Saini commented Nov 4, 2018 reply Follow flag nice explanation 2 2 replyShare Please log in or register to add a comment.