News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

whats the largest number I can fit into a dword?

Started by ecube, January 02, 2009, 08:42:54 AM

Previous topic - Next topic

ecube

my guess was 4 gigs but when I try

mov eax,4294967296

says constant value to large

jdoe

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


ecube


MichaelW

The maximum value is 2^32-1 for a dword, 2^16-1 for a word, and 2^8-1 for a byte.
eschew obfuscation