07-18-2023, 02:42 AM
(07-18-2023, 12:17 AM)Kernelpanic Wrote: @SagaraS - I haven't looked at it properly yet, those 8 bytes are on my mind.See in the description of my code I wrote in the last post.
Maybe it's like this: With an input, the start address is given, ok. If a second entry is then made, the limit of the two variables is displayed, and thus practically the new start address for the next entry. - It's just a thought. . . Let's see.
But maybe it is very simple. Everything great is simple . . . a philosopher once said.
QB64 reserves memory for the following data types:
_BYTE = 8 Byte
_UNSIGNED _BYTE = 8 Byte
INTEGER = 8 Byte
_UNSIGNED INTEGER = 8 Byte
LONG = 8 Byte
_UNSIGNED LONG = 8 Byte
_INTEGER64 = 8 Byte
_UNSIGNED INTEGER64 = 8 Byte
DOUBLE = 8 Byte
_FLOAT = 32 Byte
_MEM and _OFFSET work perfectly, but QB64 data types declaration does not.
QB64 reserves for 64Bit data types, and that for each data type.
You can check the output offset addresses with a memory viewer.