11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assembler language structureAssembler 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 │ │ operands ││ │ │ Code² │ │ │└───────────────┘ └───────────────┘ └───────┬───────┘││┌───────────────────────────────────────────────┴────────────────────────────┐┌──────────┴──────────┐┌──────────┴──────────┐│ For Data Definition │ │ For all other ││ (DC and DS │ │ ordinary Assembler ││ Instructions) │ │ Instructions │└──────────┬──────────┘└──────────┬──────────┘││ Operands can be Operands│ composed of one │ can be composed│ to five subfields³ │ of³┌────────────────┼──────────────┬───────────────┬────────────────┐┌───────────────┼────────────────┐│ │ │ │ │ │ │ │┌─────┴──────┐ ┌──────┴─────┐ ┌─────┴──────┐ ┌─────┴──────┐ ┌─────┴──────┐ │ │ ││ │ │ │ │ │ │ │ │ │ │ │ ││Duplication │ │ Type │ │ Type │ │ Modifiers │ │ Nominal │ │ │ ││ factor │ │ │ │ Extension │ │ │ │ Value │ │ │ ││ │ │ │ │ │ │ │ │ │ │ │ │└──────┬─────┘ └──────┬─────┘ └─────┬──────┘ └─────┬──────┘ └─────┬──────┘ │ │ ││ │ │ │ │ │ │ │ │ │ │ │ │ ┌─────┴──────┐ ┌─────┴──────┐ ┌─────┴──────┐│ ┌─────────────┘ │ │ │ │ Expression │ │ Character │ │ Symbolic ││ │ ┌─────────────────────────┘ │ │ │ (e.g.*+14) │ │ String │ │ Option ││ │ │ ┌─────────────────────────────────────┘ │ │ │ │ (e.g. ’XX’)│ │ (e.g. GEN) ││ │ │ │ ┌──────┐ │ └────────────┘ └────────────┘ └────────────┘│ │ │ │ │ │ │ │ e.g. 10 E B L2 ’12’ │ │ One or more nominal values└──┴──┴──┴───┴─────┘ │ ┌────────────────────────┬────────────┴─────────────┬──────────────────────────┐ │ │ │ ││ ┌───┴───┴───────┐ ┌───────┴───────┐ ┌──────┴──────┐ ┌───────┴───────┐│ ’Decimal │ │ (Expression) │ │ ’Character │ │ ’Graphic ││ number’ │ │ │ │ string’ │ │ string’⁴ ││ (e.g. ’12’) │ │ (e.g. (ADDR)) │ │ (e.g. ’ABC’)│ │ (e.g. ’’) │└───────────────┘ └───────────────┘ └─────────────┘ └───────────────┘¹ Can be an ordinary symbol, a variable symbol, or a sequence symbol² Includes symbolic operation codes of macro definitions³ Discussed more fully where individual instructions are described⁴ With DBCS option onlyFigure 5. Ordinary assembler instruction statements24 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

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

Saved successfully!

Ooh no, something went wrong!