answersLogoWhite

0

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)

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

Add your answer:

Earn +20 pts
Q: Decimal number -5 represented as a halfword in Hexadecimal notation is?
Write your answer...
Submit
Still have questions?
magnify glass
imp