Pointer in Basic
#14
(07-18-2023, 02:42 AM)SagaraS Wrote:
(07-18-2023, 12:17 AM)Kernelpanic Wrote: @SagaraS - I haven't looked at it properly yet, those 8 bytes are on my mind.

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.  Cool
See in the description of my code I wrote in the last post.

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.

"but QB64 data types declaration does not."

Your table is not matching the Wiki:
https://qb64phoenix.com/qb64wiki/index.p...able_Types
2 for Integers, 4 for Long, 8 _Integer64
4, 8, 32 for Single, Double and _Float (only 10 used (seems a waste))
b = b + ...
Reply


Messages In This Thread
Pointer in Basic - by Kernelpanic - 07-16-2023, 09:57 PM
RE: Pointer in Basic - by bplus - 07-16-2023, 10:17 PM
RE: Pointer in Basic - by mnrvovrfc - 07-17-2023, 12:05 AM
RE: Pointer in Basic - by SagaraS - 07-17-2023, 12:17 AM
RE: Pointer in Basic - by OldMoses - 07-17-2023, 12:40 AM
RE: Pointer in Basic - by bplus - 07-17-2023, 01:00 AM
RE: Pointer in Basic - by a740g - 07-17-2023, 02:53 AM
RE: Pointer in Basic - by SpriggsySpriggs - 07-17-2023, 11:55 AM
RE: Pointer in Basic - by Kernelpanic - 07-17-2023, 07:04 PM
RE: Pointer in Basic - by SagaraS - 07-17-2023, 09:39 PM
RE: Pointer in Basic - by mnrvovrfc - 07-17-2023, 10:52 PM
RE: Pointer in Basic - by Kernelpanic - 07-18-2023, 12:17 AM
RE: Pointer in Basic - by SagaraS - 07-18-2023, 02:42 AM
RE: Pointer in Basic - by bplus - 07-18-2023, 12:39 PM
RE: Pointer in Basic - by SMcNeill - 07-18-2023, 04:13 PM
RE: Pointer in Basic - by Kernelpanic - 07-18-2023, 04:26 PM
RE: Pointer in Basic - by SMcNeill - 07-18-2023, 04:59 PM
RE: Pointer in Basic - by SagaraS - 07-18-2023, 04:49 PM
RE: Pointer in Basic - by SMcNeill - 07-18-2023, 05:04 PM
RE: Pointer in Basic - by mnrvovrfc - 07-18-2023, 08:15 PM
RE: Pointer in Basic - by SagaraS - 07-18-2023, 07:30 PM
RE: Pointer in Basic - by SMcNeill - 07-18-2023, 10:11 PM
RE: Pointer in Basic - by SagaraS - 07-19-2023, 10:27 AM
RE: Pointer in Basic - by SMcNeill - 07-19-2023, 01:42 PM
RE: Pointer in Basic - by DSMan195276 - 07-19-2023, 11:15 PM



Users browsing this thread: 9 Guest(s)