Advertisement
BertM

CRAY - APAL - A Processor Assembler Language

Sep 9th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. APAL - A Processor Assembler Language
  2.  
  3.  
  4. INTRODUCTION
  5.  
  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.
  16.  
  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.
  22.  
  23.  
  24. STATEMENT FORMAT
  25.  
  26. The basic APAL instruction takes the form of a conditional assignment
  27. statement.
  28.  
  29.  
  30. Label Assignment Expression , Condition Expression .Comments
  31.  
  32.  
  33. #
  34. Subject1 = Expression1, Subject2 = Expression
  35. <
  36. >
  37.  
  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
  50.  
  51. [file broken from here]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement