Create an object at a given address: Difference between revisions
m
no edit summary
mNo edit summary |
|||
Line 948:
}</lang>
=={{header|S-BASIC}}==
S-BASIC supports base-located variables that can be positioned at run-time to any machine location.
<lang BASIC>
var first, addr = integer
based second = integer
first = 12345
location var addr = first
base second at addr
print "Value of first variable ="; first
print "Address of first variable = "; hex$(addr)
print "Value of second variable ="; second
end
</lang>
{{out}}
<pre>
Value of first variable = 12345
Address of first variable = 0CEE
Value of second variable = 12345
</pre>
=={{header|Scala}}==
|