Re: poke4 won't accept my 32bit values
Chris Bensler writes:
> test = 4294967296 <<<<<<<<< this is the value being
> poked... (#FFFFFFFF)
Not quite....
#FFFFFFFF = 4294967295
Your "test" variable is 1 higher than
the maximum 32-bit (unsigned) integer,
so poke4() gives you an error.
To get the low-order 32-bits you could do:
test = remainder(test, 4294967296)
which in this case is 0. In general you'll get
the low-order 32-bits, which is what a C program would
give you, since C doesn't worry about integer overflow.
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|