AUTO - create an auto variable.
Usage:
[NAME,NAME,...]: auto size=>VALUE,align=>VALUE
Where:
- [NAME,NAME,...]
- gives the names of one or more variables to create. All
of these will be created with the same size and
alignment.
- size=>VALUE
- is the size of each variable to be created (in words).
The default is one word.
- align=>VALUE
- is the alignment for each symbol. VALUE can be one of the
token sequences "[even]" (for an even-word
boundary) or "[odd]" (for an odd-word
boundary). It can also be a number N (for an N-word
boundary). The default is 1 (any word boundary).
Description:
"auto" lets you reserve space for auto variables in
the STACK section. You may call "auto" several times in
the same function.
"auto" is only intended for local variables, not
function arguments. For arguments, use "argdef".
Examples:
[x,y]: auto size=2,align=2
#generates
{ #start of code block
.origin .ic(STACK)
.align 2
x: .space 2
.align 2
y: .space 2
last: .set * #last is local variable
.align 2 #forces even end of section
.origin last
#back to previous IC
}
Copyright © 1996, Thinkage Ltd.