Convert small 64bit signed integer into a high and low byte ?


Author Message
bfwolf
Senior Member

Joined: 03/01/2025
Location: Germany
Posts: 246
Posted: 09:58pm 14 Apr 2026      

A kind of "hack"  according to C, which relies on the Pico using an ARM with a little-endian format:

Dim XminAddr As integer
XminAddr = PEEK(VARADDR Xmin)
Dlo = PEEK(BYTE XminAddr)
Dhi = PEEK(BYTE (XminAddr+1))