Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -0,0 +1,22 @@
|
|||
comment
|
||||
The LOCATION statement (with its somewhat counter-
|
||||
intuitive syntax) is used to obtain the address
|
||||
of a variable. A variable may be placed at a
|
||||
particular memory address by declaring it as BASED and
|
||||
then positioning it at run-time using the BASE..AT
|
||||
statement. Most often this is done to access the values
|
||||
stored in operating system variables and structures,
|
||||
though it has other uses as well.
|
||||
end
|
||||
|
||||
var i, address_of_i = integer
|
||||
based k = integer
|
||||
|
||||
location var address_of_i = i
|
||||
print "The variable i is stored at "; hex$(address_of_i)
|
||||
base k at address_of_i
|
||||
i = 12345
|
||||
print "i ="; i
|
||||
print "k ="; k rem - same as i
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue