File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -984,6 +984,14 @@ with the hardware. Use with care!
984
984
This returns the floating-point
985
985
value stored at memory address _ n_ .
986
986
987
+ This function is special, as it is
988
+ possible to use it also at the left
989
+ side of an assignment, to store a
990
+ floating point into an address:
991
+
992
+ %(1536) = 0.1234
993
+ ? %(1536)
994
+
987
995
988
996
List Of Statements
989
997
==================
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ FP_FUNCS:
83
83
" Val" STR_EXPR emit TOK_FP_VAL
84
84
" RNd()" emit TOK_FP_RND
85
85
" %Time " emit TOK_FP_TIME
86
- " %" PAR_EXPR emit TOK_FP_LOAD
87
86
88
87
ADR_EXPR:
89
88
emit { TOK_VAR_LOAD, VT_ARRAY_FLOAT } E_VAR_SEARCH " %"
@@ -129,6 +128,7 @@ INPUT_VAR:
129
128
ARRAY_FLOAT_ADDR:
130
129
emit { TOK_VAR_LOAD, VT_ARRAY_FLOAT } E_VAR_SEARCH " %" emit TOK_PUSH PAR_EXPR emit { TOK_MUL6, TOK_ADD }
131
130
emit { TOK_NUM, VT_ARRAY_FLOAT } E_LABEL " %" emit TOK_PUSH PAR_EXPR emit { TOK_MUL6, TOK_ADD }
131
+ " %" PAR_EXPR
132
132
133
133
# This is added at start of current table (<)
134
134
DIM_VAR_TYPE:<
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ ENDPROC
11
11
DIM A %(2 )
12
12
A%(0 ) = 0.125
13
13
A%(1 ) = 0.0625
14
- A%(2 ) = 0.03125
14
+ ' Test storing into pointer
15
+ %(&A %+12 )= 0.03125
15
16
16
17
@SUM &A %, 3
17
18
? SUM%
You can’t perform that action at this time.
0 commit comments