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.

ORG instructionThat is, the ORG instruction can cause the location counter to be set to any part ofa control section, even the middle of an instruction, into which you can assembledata. It can also cause the location counter to be set to the next available locationso that your program can be assembled sequentially.Source Module │ Object Code─────────────────────────────────────────────────────┼────────────────────────│FIRST START 0 │. │. │▌1▐ TABLE DC XL256’0’ │ TABLE (in Hex)▌2▐ ORG TABLE+0 │ +0 ┌────┐┌ DC C’0’ ▌3▐ │ │ F0 ││ DC C’1’ │ │ F1 ││ . │ │ . ││ . │ │ . ││ ORG TABLE+13 │ +13 │ . ││ DC C’D’ │ │ C4 ││ DC C’E’ │ │ C5 ││ . │ │ . ││ . │ │ . │▌4▐ ─┤ ORG TABLE+C’D’ │ │ . ││ DC AL1(13) │ +196 │ 13 ││ DC AL1(14) │ │ 14 ││ . │ │ . ││ . │ │ . ││ ORG TABLE+C’0’ │ +240 │ . ││ DC AL1(0) │ │ 00 ││ DC AL1(1) │ │ 01 ││ . │ │ │└ . │ +255 └────┘ORG│▌5▐ GOON DS 0H │ . │TABLE+256 . │TR INPUT,TABLE │. │. │INPUT DS CL20 │. │. │END│Figure 22. Building a translate table202 <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!