caramoan tour package

caramoan tour package

Author Topic: Question about Binary - Hex - Decimal  (Read 519 times)

Offline 0wn3d_will

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 1
Question about Binary - Hex - Decimal
« on: January 30, 2011, 03:33:30 PM »
mga boss, pinapagawa kami ng program sa assembly language na ganito ang output:

Set AL = FF ; -1 in base 10
Console Output: NEGATIVE
Set AL = 0
Console Output: ZERO
Set AL = 0F ; 15 in base 10
Console Output: POSITIVE

Tanong ko is pano naging -1 ang FFh? Kung sabihin natin yung 1st bit is yung sign bit diba dapat 1000 0001 or 81h ang -1? Pano tong number system na ginagamit sa assembly?

Philippine Electronics Forum

Question about Binary - Hex - Decimal
« on: January 30, 2011, 03:33:30 PM »

Offline anthonydp

  • Size D Battery
  • ******
  • Posts: 320
  • Pogi/Ganda Points: 54
  • Gender: Male
    • My Empty Blog
Re: Question about Binary - Hex - Decimal
« Reply #1 on: January 30, 2011, 03:57:54 PM »
Tanong ko is pano naging -1 ang FFh? Kung sabihin natin yung 1st bit is yung sign bit diba dapat 1000 0001 or 81h ang -1? Pano tong number system na ginagamit sa assembly?

wikipedia has the answer.
your question appears to be an XY Problem.

why don't you just tell us exactly what you're trying to do?

Philippine Electronics Forum

Re: Question about Binary - Hex - Decimal
« Reply #1 on: January 30, 2011, 03:57:54 PM »

Offline 0wn3d_will

  • Size AAA Battery
  • ***
  • Posts: 86
  • Pogi/Ganda Points: 1

Philippine Electronics Forum

Re: Question about Binary - Hex - Decimal
« Reply #2 on: January 30, 2011, 05:32:06 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com