Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:42 10 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Versatile remote IO design

     Page 2 of 2    
Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1358
Posted: 10:07am 09 Jul 2025
Copy link to clipboard 
Print this post

Wow, this is great  
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1358
Posted: 11:43am 09 Jul 2025
Copy link to clipboard 
Print this post

This is the method that Pete provided, years ago.

DIM integer r32,s32

r32 = &HFFFFFFFF
timer=0
for i = 1 to 1000
IF r32 and &H80000000 THEN
   s32 = r32 OR &HFFFFFFFF00000000
ELSE
   s32 = r32
END IF
next
fini=timer

' Display results
PRINT "Raw Unsigned 32-bit (as 64-bit integer): "; r32
PRINT "Signed 32-bit interpretation (as 64-bit integer): "; s32

Print fini

Edited 2025-07-09 21:53 by PhenixRising
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025