more basic pointer inplace operations (float)

basic pointers unit test now passes
This commit is contained in:
Irmen de Jong
2025-08-06 21:23:07 +02:00
parent 44285b9b5d
commit 324fb7dbf7
4 changed files with 297 additions and 110 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ Structs and Pointers
The 6502 cpu lacks some features (addressing modes, registers) to make pointers work efficiently.
Also it requires that pointer variables have to be in zero page, or copied to a temporary zero page variable,
before they can even be used as a pointer. This means that pointer operations in prog8 compile
to rather inefficient assembly code most of the time, when compared to direct array access or regular variables.
to rather large and inefficient assembly code most of the time, when compared to direct array access or regular variables.
At least try to place heavily used pointer variables in zero page using ``@requirezp`` on their declaration,
if zero page space allows.