11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Assembler language structureMachine instructions┌───────────────┐ ┌───────────────┐ ┌───────────────┐│ │ │ │ │ ││ NAME │ │ OPERATION │ │ OPERAND ││ Field │ │ Field │ │ Field ││ │ │ │ │ │└───────┬───────┘ └───────┬───────┘ └───────┬───────┘│ │ │ Which Which Which│ can be │ must be │ can be┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐│ │ │ │ │ ││ A Symbol¹ │ │ A symbolic │ │ Zero or more ││ (or space) │ │ Operation │ │ arguments ││ │ │ Code │ │ │└───────────────┘ └───────────────┘ └───────┬───────┘│ Composed of one of┌────────────────────────┬───────────┴────────────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐│ │ │ │ │ ││ │ │ │ │ Exp(Exp,Exp) ││ Expression │ │ Exp(Exp) │ │ or ││ │ │ │ │ Exp(,Exp) ││ │ │ │ │ │└───────┬───────┘ └───────────────┘ └───────────────┘│ Which can be one of┌────────────┴───────────┐┌───────┴───────┐ ┌───────┴───────┐│ │ │ ││ │ │ Arithmetic ││ Term │ │ combination ││ │ │ of terms ││ │ │ │└───────┬───────┘ └───────────────┘│ Which can be any of├────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐│ │ │ │ │ │ │ │ │ ││ A Symbol │ │ Location │ │ Symbol │ │ A │ │ A Literal ││ │ │ Counter │ │ Attribute │ │ Self-Defining │ │ ││ │ │ <strong>Ref</strong>erence │ │ <strong>Ref</strong>erence │ │ Term │ │ ││ (e.g. HERE) │ │ (i.e. *) │ │ (e.g. L’HERE) │ │ │ │ (e.g. =H’9’) │└───────────────┘ └───────────────┘ └───────────────┘ └───────┬───────┘ └───────────────┘│ Which can be any of┌────────────────────────┬────────────────────────┬────────────────────────┼────────────────────────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐ ┌───────┴───────┐│ │ │ │ │ │ │ │ │ ││ Decimal │ │ Hexadecimal │ │ Binary │ │ Character │ │ Graphic² ││ │ │ │ │ │ │ │ │ ││ (e.g. 9) │ │ (e.g. X’F9’) │ │ (e.g. B’111’) │ │ (e.g. C’JAN’) │ │ (e.g. G’◄.A►’)││ │ │ │ │ │ │ │ │ │└───────────────┘ └───────────────┘ └───────────────┘ └───────────────┘ └───────────────┘¹ Can be an ordinary symbol, a variable symbol, or a sequence symbol² With DBCS option onlyFigure 4. Machine instructionsChapter 2. Coding and structure 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!