lilgodwin
lilgodwin

Reputation: 1108

Assembly data types limits and examples

I'm taking an Assembly Language class and the book gives me a list of data types:

Just as the title says, I'm hoping to get information on the upper/lower limits of each of these data types, and maybe some examples.

Upvotes: 6

Views: 24776

Answers (1)

SirPython
SirPython

Reputation: 647

Limit of an unsigned type:

0 to 2^bit_count - 1

Limit of a signed type:

-(2^(bit_count-1)) to (2^(bit_count-1))-1

For example, an unsigned byte's limit is:

0 to 255

And a signed word's limit is:

-32768 to 32767

I'm not entirely sure what the real numbers are, but my assumption is that they are floating point numbers.


For more info, see here.

Upvotes: 5

Related Questions