Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

CRAY - APAL - A Processor Assembler Language

By: BertM on Sep 9th, 2011  |  syntax: None  |  size: 2.02 KB  |  views: 113  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. APAL - A Processor Assembler Language
  6. An APAL program is composed of one or more APAL source statements.
  7. Each statement is one line in length. Each statement, when com-
  8. piled by the APAL compiler, results in one or more instructions to
  9. be executed by the A processor, or the definition of working memory
  10. space for the program. The APAL compiler examines each source state-
  11. ment for proper syntax and usage of operands. Any errors are noted
  12. on the compile listing which is a product of the compilation process.
  13. The compiler generates instructions, assigns memory addresses, and
  14. sets aside memory areas for buffers and working space as directed by
  15. the source statements in the program.
  17. The console command to execute the APAL compiler is: APAL A B C.
  18. A is the name of the file containing the source program. B is the
  19. name of the file that will contain the binary at the completion of
  20. the compilation process. C is the name of the file that will contain
  21. the listing.
  26. The basic APAL instruction takes the form of a conditional assignment
  27. statement.
  30. Label Assignment Expression , Condition Expression .Comments
  33.  #
  34.  Subject1 = Expression1, Subject2 = Expression
  35.  <
  36.  >
  38. Except for a very limited number of statements, all APAL source
  39. statements take this form. The assignment portion of the statement
  40. is always present, and is composed of a single subject followed by an
  41. = sign followed by an expression which expresses the value of the
  42. quantity which is to replace the subject operand. The = sign is the
  43. only separator allowed between the subject and the replacement ex-
  44. pression in the assignment portion of the statement. Expression1 may
  45. be any expression composed of valid names ond operators. The condition
  46. portion of the statement is optional. When present, it is first eval-
  47. uated to determine a true or false condition. If true, the assignment
  48. portion of the statement is executed. If false, the assignment portion
  49. of the statement is not executed. If
  51. [file broken from here]
clone this paste RAW Paste Data