Address of a variable: Difference between revisions
m
→{{header|Commodore BASIC}}
(→{{header|Commodore BASIC}}: Add implementation) |
|||
Line 555:
<syntaxhighlight lang="basic">100 REM ALLOCATE ALL VARS FIRST SO THEY DON'T MOVE
110 X=123:Y=456:PX=0:PY=0:I=0:T=0
120 PRINT "X="X", Y="Y
130 PX=POINTER(X):PY=POINTER(Y)
140 REM VARS ARE STORED IN RAM BANK 1
150 BANK 1
160 FOR I=0 TO 6
Line 582 ⟶ 570:
<pre>X= 123 , Y= 456
NOW X= 456 , Y= 123</pre>
=={{header|Common Lisp}}==
|