This is the code that works in 64 bits but not in 32 bits:
Code: Select all
Dim NPA As Double
Dim ttIndex As ULongInt
NPA=2277960380
ttIndex=NPA Mod(16777216)
Print ttIndex
Sleep
Shows me
0 in 32 bits
13036220 as must be in 64 bits
Code: Select all
Dim NPA As Double
Dim ttIndex As ULongInt
NPA=2277960380
ttIndex=NPA Mod(16777216)
Print ttIndex
Sleep
Code: Select all
Dim NPA As Double
Common Shared ttIndex As ULongInt
NPA=2277960380
ttIndex=NPA Mod 16777216LL 'uppercase L is easier to recognize
Print ttIndex
sleep
srvaldez wrote:this worksCode: Select all
Dim NPA As Double
Common Shared ttIndex As ULongInt
NPA=2277960380
ttIndex=NPA Mod 16777216LL 'uppercase L is easier to recognize
Print ttIndex
sleep
Code: Select all
Dim NPA As Double
Common Shared ttIndex As ULongInt
NPA=2277960380
ttIndex=NPA Mod 16777216UL
Print ttIndex
sleep
Code: Select all
ScreenRes 800, 600, 32
Dim As Byte x
? "hello"
'If x = 12 Then
x = x
'EndIf
sleep
SARG wrote:Hi all,
Nothing more to say.
@St_W thanks.
SARG wrote:Not ignored as there are 10 comparisons (x equal x ?) then in the end the result is assigned to x.
x=x : just an assignement so no generated code
x = x = x : first one comparison then an assignment so obviously some lines of code
Code: Select all
Dim As Byte x
x=x=x=x:Print x
x=x=x :Print x
sleep
St_W wrote:If you want to add a dummy instruction doing nothing for debugging purposes you could use e.g. "asm nop" instead (for x86 and x64).
AGS wrote:How do I go about setting up an account on the German FreeBASIC server
http://users.freebasic-portal.de/ wrote:Every FreeBASIC programmer can apply to get a free web hosting account on this server to store and publish his/her programming related contents. Just contact the server operator (see email address below).
[...]
E-mail address of the server operator: mail ((at)) freebasic-portal [dot] de
Users browsing this forum: No registered users and 13 guests