Decimal number -5 represented as a halfword in Hexadecimal notation is?

Alright, let's forget the - for a while

convert 5 to binary.

do this:

5/2=2.5

2/2=1

1/2=0,5

than this:

2.5 absolute value=2

1 absolute value=1

0,5 absolute value=0

finally this

2*2=4 and 5-4=1

2*1=2 and 2-2=0

2*0=0 and 1-0=1 <--(last digit) = 101

complete the binary number by placing a 0= 0101.

Now as you might know HW = 2 bytes and 1 byte is 8 bits

so to to complete you should place 0000 0000 0000 before your result:

0000 0000 0000 0101

Let's not forget about the - though...

you'll have to invert your result

0000 0000 0000 0101=

1111 1111 1111 1010

and increment it by 1=1111 1111 1111 1011 and there is your result...

You could check your result this way:

0000 0000 0000 0101

+1111 1111 1111 1011

1 0000 0000 0000 0000

The first bit defines if your decimal has a + or - (1=- and 0=+)

The rest is simple...

(1111=F) (1111=F) (1111=F) (1011=B)=FFFB (hex HW)