
Opcode Operands Function
'aname A Returns the name for expressions of the form <name>=<value> or <value>-><name>.
'args - Returns a list containing all macro arguments for the current call.
'args N Returns the Nth argument of the current macro call.
'atom E Returns 0 if E is a list, 1 otherwise.
'avalue A Returns the value for expressions of the form <name>=<value> or <value>-><name>.
'binary N Converts N to a binary string and returns the result.
'binary N,N Converts arg1 to a fixed-length binary string (arg2) and returns the result.
'btoi S Treats S as a string of binary digits, and converts it to an integer.
'calln - The sequential number of the macro call that invoked the current macro.
'callt - Type of current macro call. True for functions, false for statements. Strings "STMT" or "FUNC" if evaluated as a string.
'cons E,L Append E to the head of the list L, and return the result.
'consr E,L Append E to the tail of the list L, and return the result.
'count L Count the elements of list L and return the result.
'ctoi C Return the integer value in the underlying character set of the character C.
'first L Return the first element of list L.
'hex N Convert the number N to a string of hexadecimal digits.
'hex N,N Convert the first argument to a fixed-length string of hexadecimal digits, length equal to second argument.
'ilist - For FHDL gate-type macro calls, return the list of input names.
'ilist N For FHDL gate-type macro calls, return the Nth input name.
'itos N,N Convert the first argument to a string of decimal digits whose length is equal to the second argument. (Automatic coercion takes care of variable-length strings.).
'label - The label of the current macro call.
'len S Returns the length of the string argument.
'llist - Returns the list of labels for the current macro call.
'llist N Returns the Nth label of the current macro call.
'nil L Returns 1 if the argument is the null list, 0 otherwise.
'null - The null string or the null list.
'octal N Converts N to a string of octal digits.
'octal N,N Converts the first argument to a fixed-length string of octal digits. The length is equal to the second argument.
'olist - For FHDL gate-type macro calls, return the list of output names.
'olist N For FHDL gate-type macro calls, return the Nth output name
'opcode - The opcode of the current macro call.
'otoi S Treats S as a string of octal digits and returns the integer value.
'rest L Deletes the first element from a list and returns the rest. For single element lists, returns 'null.
'run - The value of the -r option from the alogic command line. "alogic" is default.
'select L,N Select the Nth element from list L.
'substr S,N,N Return the substring of S that starts at the character denoted by the first argument (0 is the first char of S) and spans a number of characters equal to the second argument.
'substr S,N Return the substring of S that starts at the character denoted by the first argument (0 is the first char of S) and extends through the end of the string.
'xtoi S Treat S as a string of hexadecimal digits, and return the integer equivalent.