MacLisp Cross Assembler Documentation. KLOTZ. DEC compatability pseudo-op stuff. ; Begins comment field ' Indicates single ASCII character as a term in expressions. ^O Indicates octal number ^B Indicates binary number = Symbol assignment . Current location counter $ Indicates hexadecimal number Default radix is decimal. .ADDR Generates a 16-bit address with the bytes in the proper order, i.e., .[TO DO] .ASCII ASCII string delimited by paired markers. .ASCIZ ASCIZ string delimited by paired markers and supplied with terminal null byte. .BLKBA Allocate space for a number of bytes as specified by the operand. .BLKW Allocate space for a number of words as specified by the operand. .BYTE Each expression supplied will be stored in a single byte.[In progress. Eval-Expression does what with commas, and best way to cons it up.] .END End of program. .ISET Specifies the instruction set to be used, "6502" or "TI990". .PAGE Force a page break. Does nothing useful now. .PRINT Print the text which follows on the terminal. .RADIX Change the radix to the value specified to this directive. .SBTTL Specify subtitle text. Prints out TOC on screen if SILENT-RUNNING isn't specified (via the /N switch.) .TITLE Specify title text. .WORD Allocate space for each value specified. [Same as .BYTE for 8 bit machines.] ------------------------- Things for the Future: .REPT (.REPT ) Repeat the body of this directive the indicated number of times. .NTYPE sym,arg The symbol is equated to the addressing mode of the argument. .NCHR sym, The symbol is equated to the number of characters in .NARG sym The symbol is equated to the number of arguments to the macro .MEXIT Leave macro expansion Begin a macro definition .MCALL Call macros from the system library. .IRPC sym,Indefinite repeat of body based upon number of characters in . .MACRO name Immediate if; if condition is met, stmnt is emitted. .IRP sym, Indefinite repeat of body based upon number of parameters in ..IIF condition, arg, stmnt .IF Enter a conditional. .IFDF .IFDF true if symbol is defined. See also .IFNDF. .IFEQ .IFEQ true if expression evaluates to zero. .IFF Begins body of conditional if enclosing condition was false. .IFG .IFG true if expression greater than zero. .IFGE .IFG true if expression greater than or equal to zero. .IFGT Same as .IFG .IFL .IFL true if expression is negative. .IFLE .IFLE true if expression is negative or zero. .IFLT Same as .IFL. .IFNDF .IFNDF true if symbol is undefined. .IFNE .IFNE true if expression is non-zero. .IFNZ Same as .IFNE .IFT Begins body of conditional if enclosing condition was true. .IFZ Same as .IFE .IIF condition, arg, stmnt Immediate if; if condition is met, stmnt is emitted. .IRP sym, Indefinite repeat of body based upon number of parameters in . [Nui mahope.] .IRPC sym,Indefinite repeat of body based upon number of characters in . .MACRO name Begin a macro definition .MEXIT Leave macro expansion .NARG sym The symbol is equated to the number of arguments to the macro .NCHR sym, The symbol is equated to the number of characters in .NTYPE sym,arg The symbol is equated to the addressing mode of the argument. -------------------- Assembler syntax quick summary <...> Encloses any expression (the assembler's equivalent of parentheses). Expressions are evaluated left-to-right without operator heirarchy. + Addition or unary plus - Subtraction or unary minus * Multiplication / Division