# Integer Numeric Encoding - Practice

As with most activities, proficiency only comes with practice. So, here are some sample problems to work on. Don't just click on the "Solutions"; take the time to figure them out on your own before you check.
For all of the problems which follow, assume a 16-bit word. Notice the shorthand suffix notation to indicated whether values are decimal (d), binary (b), or hexadecimal (h).

## Decimal - Unsigned Binary Conversions

• ### Decimal to Unsigned Binary

• 1234 (d) = _________________________ (b)
• 254 (d) = _________________________ (b)
• Solutions
• ### Unsigned Binary to Decimal

• 0000 0010 1001 0110 (b) = ____________ (d)
• 0000 1111 1111 1111 (b) = ____________ (d)
• Solutions

## Decimal - 2's Complement Conversions

• ### Decimal to 2's Complement

• 365(d) = _______________________ (b)
• -52(d) = _______________________ (b)
• Solutions
• ### 2's Complement to Decimal

• 1111 1101 0111 0110(b) = ________________ (d)
• 0000 0001 0110 0000(b) = ________________ (d)
• Solutions

## Binary Arithmetic

determining the sum of the following additions and the state of the Zero, Carry, Sign and Overflow flags

• (0101 0110 1000 1101) + (0011 0001 1100 1110)
• (1000 1111 0011 1001) + (0111 0000 1100 0111)
• Solutions
• ### Subtraction (with Flags)

determining the difference of the following subtractions and the state of the Zero, Carry, Sign and Overflow flags

• (0101 0110 1000 1101) - (0011 0001 1100 1110)
• (1000 1111 0011 1001) - (0111 0000 1100 0111)
• Solutions

• 10110110110101(b) = ________________(h)
• Solution

• 6AF2(h) = ___________________________________ (b)
• Solution

• 1997(d) = ___________________(h)
• -4321(d) = __________________(h)
• Solutions

• 04B7(h) = ____________________ (d)
• A19C(h) = ____________________ (d)
• Solutions