lc3data-representation

Data Representation in LC-3


I was doing my exam prep and I have come across a problem that ive been having issues with mainly because of the lack of info provided. The question is

b.What integer does the 16 bit word F751 represent in the LC-3?

So do we convert the base 16 to base 10 or base 2, Im not really sure how to do this problem.


Solution

  • Take f751 and convert to binary

    1111 0111 0101 0001

    The most significant bit is 1 so we know the number is negative, so take the 2s complement

    0000 1000 1010 1111

    And Convert to decimal -2223