The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ecube on January 02, 2009, 08:42:54 AM

Title: whats the largest number I can fit into a dword?
Post by: ecube on January 02, 2009, 08:42:54 AM
my guess was 4 gigs but when I try

mov eax,4294967296

says constant value to large
Title: Re: whats the largest number I can fit into a dword?
Post by: jdoe on January 02, 2009, 09:05:58 AM
Quote from: E^cube on January 02, 2009, 08:42:54 AM
my guess was 4 gigs but when I try

mov eax,4294967296

says constant value to large


Real close... Have you tried just one less.

:wink

Title: Re: whats the largest number I can fit into a dword?
Post by: ecube on January 02, 2009, 09:12:49 AM
Heh no I didn't, thankyou :D
Title: Re: whats the largest number I can fit into a dword?
Post by: MichaelW on January 02, 2009, 09:38:54 AM
The maximum value is 2^32-1 for a dword, 2^16-1 for a word, and 2^8-1 for a byte.