This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

A simple question about assigning number

Hello,
I think I missed something here but I don't get it yet :)

this code:
long x ;
x = 100000 ;

generated the following assembly:

00020004 E6F4A086 MOV R4,#0x86A0
00020008 E015 MOV R5,#0x01

because 100000 = 0x186A0. fine.

but the following code:
long x;
x = 10*10*1000 ;

generated the following assembly:

00020010 E6F4A086 MOV R4,#0x86A0
00020014 E6F5FFFF MOV R5,#0xFFFF

I miss something SUPER basic here?

Thanks,
Tamir

0