Line 927... |
Line 927... |
.fetchoffset(var_name,offset)
|
.fetchoffset(var_name,offset)
|
fetches the single-byte value of var_name offset by
|
fetches the single-byte value of var_name offset by
|
"offset" bytes
|
"offset" bytes
|
Note: This is equivalent to
|
Note: This is equivalent to
|
"${var_name+offset} .fetch(mem_name)"
|
"${var_name+offset} .fetch(mem_name)"
|
|
where mem_name is the memory in which var_name is
|
|
stored.
|
.fetchram(var_name) is similar to the .fetch(mem_name) macro except that the
|
.fetchram(var_name) is similar to the .fetch(mem_name) macro except that the
|
variable name is used to identify the memory instead of
|
variable name is used to identify the memory instead of
|
the name of the memory
|
the name of the memory
|
.fetchram+(var_name) is similar to the .fetch+(mem_name) macro except that
|
.fetchram+(var_name) is similar to the .fetch+(mem_name) macro except that
|
the variable name is used to identify the memory instead
|
the variable name is used to identify the memory instead
|
of the name of the memory
|
of the name of the memory
|
.fetchram-(var_name) is similar to the .fetch-(mem_name) macro except that the
|
.fetchram-(var_name) is similar to the .fetch-(mem_name) macro except that the
|
the variable name is used to identify the memory instead
|
the variable name is used to identify the memory instead
|
of the name of the memory
|
of the name of the memory
|
.fetchvalue(var_name) fetches the single-byte value of var_name
|
.fetchvalue(var_name) fetches the single-byte value of var_name
|
Note: This is equivalent to "var_name .fetch(mem_name)"
|
|
where mem_name is the memory in which var_name is
|
|
stored.
|
|
.fetchvalueoffset(var_name,offset)
|
|
fetches the single-byte value stored at var_name+offset
|
|
Note: This is equivalent to
|
Note: This is equivalent to
|
"${var_name+offset}" .fetch(mem_name)
|
"var_name .fetch(mem_name)"
|
where mem_name is the memory in which var_name is
|
where mem_name is the memory in which var_name is
|
stored.
|
stored.
|
.fetchvector(var_name,N)
|
.fetchvector(var_name,N)
|
fetches N values starting at var_name into the data
|
fetches N values starting at var_name into the data
|
stack with the value at var_name at the top and the
|
stack with the value at var_name at the top and the
|
Line 967... |
Line 964... |
.storeoffset(var_name,offset)
|
.storeoffset(var_name,offset)
|
stores the single-byte value at the top of the data
|
stores the single-byte value at the top of the data
|
stack at var_name offset by "offset" bytes
|
stack at var_name offset by "offset" bytes
|
Note: This is equivalent to
|
Note: This is equivalent to
|
"${var_name+offset} .store(mem_name) drop"
|
"${var_name+offset} .store(mem_name) drop"
|
Note: The optional third argument is as per the
|
where mem_name is the memory in which var_name is
|
optional second argument of .storevalue
|
stored.
|
|
Note: The default "drop" instruction can be replaced by
|
|
providing the optional third argument.
|
.storeram(var_name) is similar to the .store(mem_name) macro except that the
|
.storeram(var_name) is similar to the .store(mem_name) macro except that the
|
variable name is used to identify the RAM instead of the
|
variable name is used to identify the RAM instead of the
|
name of the RAM
|
name of the RAM
|
.storeram+(var_name) is similar to the .store+(mem_name) macro except that
|
.storeram+(var_name) is similar to the .store+(mem_name) macro except that
|
the variable name is used to identify the RAM instead of
|
the variable name is used to identify the RAM instead of
|