Results 1 to 7 of 7

Thread: 2's Compliment - [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    2's Compliment - [RESOLVED]

    I have the following problem which i know should be straight forward but i just cannot see the solution:

    i have two 16bit words which i need to combine to get a 32bit signed long.

    ie -123456 is stored as FFFE hex (MSW) and 1DC0 hex (LSW).

    how do i get from the Hex values to the long value? (Code please)
    Last edited by mik706; Mar 2nd, 2004 at 04:26 AM.
    Mik706

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width